| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a source code variable (parameter, attribute, local variable, and so on).
This interface has two derivatives:
SciParameter and SciAttribute, which are used to clearly
identify whether the variable is a parameter or an attribute.
| Method Summary | |
boolean | canSetInitialValue(SciExpression expr)Checks whether the specified SciExpression can be assigned to this variable as the initial value. |
boolean | canSetType(SciType type)Checks whether the specified type can be set as the type for this variable. |
SciExpression | getInitialValue()Returns SciExpression containing the initial value for this variable. |
SciType | getType()Returns a type of this variable. |
void | setInitialValue(SciExpression expr)Sets the initial value for this variable to the specified SciExpression. |
void | setType(SciType type)Sets the type for this variable to the specified type. |
| Methods inherited from interface com.togethersoft.openapi.sci.SciElement |
accept, canSetName, canSetProperty, getDeclarationText, getName, getQualifiedName, getTagList, getUniqueName, hasProperty, isDeleted, isPropertyReadable, isPropertyWritable, setName, setProperty, visitReferences, visitReferences |
| Methods inherited from interface com.togethersoft.openapi.sci.SciObject |
canCut, canDelete, canReplace, copy, cut, delete, getContainingFile, getContainingScope, getLanguage, getPositions, getText, getUserProperty, isReadOnly, replace, setUserProperty |
| Method Detail |
public boolean canSetInitialValue(SciExpression expr)
SciExpression can be assigned to this variable as the initial value.SciExpression which needs to be assigned to this variable as the initial valuetrue if specified SciExpression can be assigned to this variable as the initial value,
false otherwisepublic boolean canSetType(SciType type)
true if it can be done, false otherwise.true if the specified type can be set as the type for this variable,
false otherwisepublic SciExpression getInitialValue()
SciExpression containing the initial value for this variable.SciExpression containing the initial value for this variablepublic SciType getType()
public void setInitialValue(SciExpression expr)
SciExpression.SciExpression which needs to be assigned to this variable as the initial valuepublic void setType(SciType type)
myAttribute represents this source code attribute:
int k;
myAttribute.getType().setText("java.util.Hashtable");
java.util.Hashtable k;
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||