|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.ConstantExpression
The class ConstantExpression represents a constant expression
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
ConstantExpression(ScopeManager parentScope)
|
Method Summary | |
void |
computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
Empty |
java.lang.String |
getString()
|
java.lang.String |
getValue()
|
void |
print(java.lang.String indentation)
Print all information contained in a expression of type ConstantExpression |
void |
setValue(java.lang.String value)
Set the constant value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstantExpression(ScopeManager parentScope)
Method Detail |
public java.lang.String getValue()
Ex: a = 5; s = "xxxx"
On the ConstantExpression object corresponding to "5" it returns "5"
On the ConstantExpression object corresponding to "xxxx" it returns "xxxx"
public java.lang.String getString()
getString
in class Expression
public void setValue(java.lang.String value)
public void computeType(ScopeInfo scopeInfo, java.lang.String indentation)
computeType
in class Expression
public void print(java.lang.String indentation)
print
in interface ScopeManager
print
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |