|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.mit.ai.psg.jeva.SimpleNode
|
+--edu.mit.ai.psg.jeva.JevaNode
|
+--edu.mit.ai.psg.jeva.JNSLocalVariableDeclaration
Jeva parse Node for local variable declarations, e.g., "int i = 0;". Can contain multiple declarations, e.g., "int i=0, j=1, k=2;".
| Fields inherited from class edu.mit.ai.psg.jeva.SimpleNode |
children,
id,
parent |
| Method Summary | |
IEnv |
eval(IEnv env)
Evaluate this Statement; don't call this directly, use EvalMethods.eval(IStatementNode, IEnv)
Every statement needs to implement an eval method. |
JNSVariableDeclarator |
getDeclaratorNode(int i)
|
int |
getNumDeclarators()
|
JNType |
getTypeNode()
|
Object |
jjtAccept(IJevaVisitor visitor,
Object data)
Accept a visitor. |
IEnv |
verifyTypes(IEnv env)
Extend environment so types of later expressions can be calculated. |
| Methods inherited from class edu.mit.ai.psg.jeva.SimpleNode |
dump,
jjtAddChild,
jjtClose,
jjtGetChild,
jjtGetNumChildren,
jjtGetParent,
jjtOpen,
jjtSetParent,
toString,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Method Detail |
public Object jjtAccept(IJevaVisitor visitor,
Object data)
return visitor.visit(this, data);which dispatches on the type of this to appropriate method of visitor
public JNType getTypeNode()
public int getNumDeclarators()
public JNSVariableDeclarator getDeclaratorNode(int i)
public IEnv verifyTypes(IEnv env)
throws VerifyingException
env - environment of names bindings.EvalMethods.verifyTypes(IStatementNode, IEnv)
public IEnv eval(IEnv env)
throws ThrowException
EvalMethods.eval(IStatementNode, IEnv)
Every statement needs to implement an eval method.env - environment of names bindings.EvalMethods.eval(IStatementNode, 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 | ||||||||