|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface to nodes for Java expressions. Nodes should not call this interface directly, but instead use EvalMethods to capture errors into an EvalErrException.
EvalMethods,
ExpressionNode| Method Summary | |
IClass |
getType()
Returns cached type of verified expression [verifying calls getType(IEnv)]. |
IClass |
getType(IEnv env)
Verifies the type correctness of the expression and returns the static type of the expression (nodes should not call this interface directly). |
Object |
getValue(IEnv env)
Get the value of this node (nodes should not call this interface directly). |
boolean |
isConstant(IEnv env)
Predicate testing whether this is a constant expression (nodes should not call this interface directly). |
| Methods inherited from interface edu.mit.ai.psg.jeva.IJevaNode |
getBeginToken,
getEndToken,
insertNewChildAfter,
insertNewChildAt,
insertNewChildBefore,
jjtAccept,
jnGetChild,
jnGetParent,
print,
print,
printToString,
printToString,
removeChild,
replaceChild,
replaceChild,
setBeginToken,
setEndToken |
| Methods inherited from interface edu.mit.ai.psg.jeva.Node |
jjtAddChild,
jjtClose,
jjtGetChild,
jjtGetNumChildren,
jjtGetParent,
jjtOpen,
jjtSetParent |
| Method Detail |
public IClass getType(IEnv env)
throws VerifyingException
env - environment of name bindings, etc.EvalMethods.getType(IExpressionNode, IEnv)
public IClass getType()
throws IllegalStateException
public boolean isConstant(IEnv env)
throws VerifyingException
env - environment of name bindings, etc.EvalMethods.isConstant(IExpressionNode, IEnv)
public Object getValue(IEnv env)
throws ThrowException
env - environment of name bindings, etc.EvalMethods.eval(IExpressionNode, IEnv)
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||