|
|||||||||
| 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.JNDClassDeclaration
JNDClassDeclaration: Parse node for class and interface declarations.
IDeclarationNode| Fields inherited from class edu.mit.ai.psg.jeva.SimpleNode |
children,
id,
parent |
| Method Summary | |
void |
computeTypeSignatures(IEnv env)
|
void |
ensureVerified()
|
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. |
protected void |
evalObjectInitializations(Object obj,
IEnv classEnv)
|
JNDClassBody |
getBodyNode()
|
String |
getFullName()
|
InterpretedClass |
getIClass()
|
JNNameList |
getInterfaceNamesNode()
|
String |
getSimpleName()
|
JNName |
getSuperclassNameNode()
|
Object |
jjtAccept(IJevaVisitor visitor,
Object data)
Accept a visitor. |
protected IEnv |
runInitializations(Vector initializations,
IEnv env)
|
IEnv |
scanDeclarations(IEnv env)
|
IEnv |
verifyTypes(IEnv env)
Verify types within this statement; don't call this directly, use EvalMethods.verifyTypes(IStatementNode, IEnv). |
| 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 InterpretedClass getIClass()
public JNDClassBody getBodyNode()
public String getSimpleName()
public String getFullName()
public JNName getSuperclassNameNode()
public JNNameList getInterfaceNamesNode()
public IEnv scanDeclarations(IEnv env)
throws VerifyingException
IDeclarationNode
public void computeTypeSignatures(IEnv env)
throws VerifyingException
IDeclarationNode
public IEnv verifyTypes(IEnv env)
throws VerifyingException
EvalMethods.verifyTypes(IStatementNode, IEnv).
Builds env without evaluating anything with side effects, for the
purpose of verifying types of later statements. May be used by
preprocessors which must find the type of an expression in order
to assign it to a new variable.IDeclarationNode
public void ensureVerified()
throws VerifyingException
public IEnv eval(IEnv env)
EvalMethods.eval(IStatementNode, IEnv)
Every statement needs to implement an eval method.env - environment of names bindings.EvalMethods.eval(IStatementNode, IEnv)
protected void evalObjectInitializations(Object obj,
IEnv classEnv)
throws ThrowException
protected IEnv runInitializations(Vector initializations,
IEnv env)
throws ThrowException
|
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 | ||||||||