|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.Assignment
This class represents a C++ assignment statement
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
Assignment(ScopeManager parentScope)
|
Method Summary | |
void |
computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
This method computes recursively the types on the left and right sides of the assignment |
Expression |
getLhs()
|
Expression |
getRhs()
|
java.lang.String |
getString()
|
void |
print(java.lang.String indentation)
Prints all information contained in the Assignment expression |
void |
setLhs(Expression lhs)
The parameter "lhs" is used to represent the expression found on the left of the symbol "=" |
void |
setRhs(Expression rhs)
The parameter "rhs" is used to represent the expression found on the right of the symbol "=" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Assignment(ScopeManager parentScope)
Method Detail |
public Expression getLhs()
public Expression getRhs()
public java.lang.String getString()
getString
in class Expression
public void setLhs(Expression lhs)
Ex: int a; int b; .... b = a * 10;
In this case "lhs" will contain the expression (of type SimpleVariable) corresponding to "b"
public void setRhs(Expression rhs)
Ex: int a; int b; .... b = a * 10;
In this case "rhs" will contain the expression (of type CompositeExpression) corresponding to "a*10"
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 |