|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.ReturnExpression
The class ReturnExpression represents the C++ return statement
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
ReturnExpression(ScopeManager parent)
|
Method Summary | |
void |
addUse(Expression expr)
Add an used expression |
void |
computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
This method computes recursively the 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 ReturnExpression(ScopeManager parent)
Method Detail |
public java.util.Vector getUse()
public java.lang.String getString()
getString
in class Expression
public void addUse(Expression expr)
CompositeExpression.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 |