|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.CatchExpression
The class CatchExpression represents the statements in a catch block
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
CatchExpression(ScopeManager parentScope)
|
Method Summary | |
void |
addExpression(Expression expr,
ScopeManager wrapper)
Add an Expression object to the current Expression |
void |
addParameters(java.util.Vector parameters)
The parameter "parameters" is used to represent the parameters of the catch statement |
void |
addVariable(Variable var)
Add a Variable object corresponding to a local variable to the current Expression. |
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.util.Vector |
getParameters()
|
java.lang.String |
getString()
|
void |
print(java.lang.String indentation)
Print all information contained in this Expression |
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 CatchExpression(ScopeManager parentScope)
Method Detail |
public java.util.Vector getParameters()
public java.util.Vector getBody()
public java.lang.String getString()
getString
in class Expression
public void addVariable(Variable var)
addVariable
in interface ScopeManager
addVariable
in class Expression
public void addParameters(java.util.Vector parameters)
Ex: class Overflow {..}; main() {... try {...} catch (Overflow& o){..}} {
The string "Overflow& o" is represented as a Parameter object.
public ScopeManager findVariableType(java.lang.String nameToBeFound, java.lang.StringBuffer typeToBeFound, Expression expr)
Expression
findVariableType
in interface ScopeManager
findVariableType
in class Expression
public 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 |