|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.expressions.JavaExpr
This class models an expression of (our subset of) the java language.
Field Summary | |
static int |
BOOL
Constant used to indicate that this expression's type is boolean . |
static int |
INT
Constant used to indicate that this expression's type is int . |
static int |
OBJ
Constant used to indicate that this expression's type is Object . |
Constructor Summary | |
JavaExpr()
|
Method Summary | |
void |
dump()
Prints the tree for the expression of this precondition. |
abstract void |
dump(int spaces)
Prints the tree for the expression of this precondition. |
boolean |
evaluateBool(SymbolicTable table)
Returns the boolean result of this expression. |
int |
evaluateInt(SymbolicTable table)
Returns the int result of this expression. |
java.lang.Object |
evaluateObj(SymbolicTable table)
Returns in an object the result of the evaluation of this expression. |
abstract java.lang.Class |
getClasse()
Returns an object representing the class of this expression. |
java.util.Enumeration |
identObjetos()
Returns all object variable identifiers that are used in this expression. |
int |
numIdentObjetos()
Returns the number of object identifiers (variables) in this expression. |
int |
tipo()
Returns the type of this expression. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int INT
int
.public static final int BOOL
boolean
.public static final int OBJ
Object
.
(or any of this subclasses).Constructor Detail |
public JavaExpr()
Method Detail |
public void dump()
public abstract void dump(int spaces)
spaces
- the identation for the printed output.public boolean evaluateBool(SymbolicTable table) throws MethodEvaluationException, FieldAccessException
false
will be returned.table
- the symbolic table where the values of the variables
used within this rule are stored.public int evaluateInt(SymbolicTable table) throws MethodEvaluationException, FieldAccessException
0 (zero)
will be returned.table
- the symbolic table where the values of the variables
used within this rule are stored.public java.lang.Object evaluateObj(SymbolicTable table) throws MethodEvaluationException, FieldAccessException
table
- the symbolic table where the values of the variables
used within this rule are stored.public abstract java.lang.Class getClasse()
public java.util.Enumeration identObjetos()
public int numIdentObjetos()
public int tipo()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |