|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.CompositeExpression
The class CompositeExpression represents a statement composed by more than one expression
Ex: a < b;
Ex: a + b - c + d;
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
CompositeExpression(ScopeManager parentScope)
|
Method Summary | |
void |
addUse(Expression expr)
Add an used expression |
void |
computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
This method computes recursively the variable types on the expressions contained in the used Expression objects |
java.lang.String |
getString()
|
java.util.Vector |
getUse()
|
void |
print(java.lang.String indentation)
Print all information |
void |
setUse(java.util.Vector useExpr)
The parameter "useExpr" is used to represent the expressions in which a more complex expression can be subdivided |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompositeExpression(ScopeManager parentScope)
Method Detail |
public java.util.Vector getUse()
Ex: a + b - c + d;
In this case returns a Vector containing the Expression objects corresponding to a, b, c, d.
public java.lang.String getString()
getString
in class Expression
public void addUse(Expression expr)
setUse(java.util.Vector)
public void setUse(java.util.Vector useExpr)
Ex: a * (b + c);
In this case "useExpr" will contain two expressions: one of type SimpleVariable corresponding to the variable "a" and one of type CompositeExpression corresponding to "(b +c)"
public void print(java.lang.String indentation)
print
in interface ScopeManager
print
in class Expression
public void computeType(ScopeInfo scopeInfo, java.lang.String indentation)
computeType
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |