|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.ElseExpression
The class ElseExpression represents the statements in a Else block
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
ElseExpression(ScopeManager parentScope)
|
Method Summary | |
void |
addExpression(Expression expr,
ScopeManager wrapper)
Add an Expression object associated with a statement inside the the else block to the current object |
void |
addVariable(Variable var)
Empty |
ScopeManager |
findVariableType(java.lang.String nameToBeFound,
java.lang.StringBuffer typeToBeFound,
Expression expr)
Look for the variable declaration whose name is "nameToBeFound" and return the ScopeManager in which it is defined (if found), filling "typeToBeFound" with the variabl type. |
java.util.Vector |
getBody()
|
java.lang.String |
getString()
|
void |
print(java.lang.String indentation)
Print all information |
void |
setLBracketPosition(int position)
Empty |
void |
setRBracketPosition(int position)
Empty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElseExpression(ScopeManager parentScope)
Method Detail |
public java.util.Vector getBody()
public java.lang.String getString()
getString
in class Expression
public ScopeManager findVariableType(java.lang.String nameToBeFound, java.lang.StringBuffer typeToBeFound, Expression expr)
Expression
findVariableType
in interface ScopeManager
findVariableType
in class Expression
public void addVariable(Variable var)
Expression
addVariable
in interface ScopeManager
addVariable
in class Expression
var
- represents a local variable declared inside the else
blockpublic void addExpression(Expression expr, ScopeManager wrapper)
addExpression
in interface ScopeManager
addExpression
in class Expression
public void setLBracketPosition(int position)
Expression
setLBracketPosition
in class Expression
position
- represents the position of "{", if presentpublic void setRBracketPosition(int position)
Expression
setRBracketPosition
in class Expression
position
- represents the position of "}", if presentpublic 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 |