|
|||||||||
| 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.JNDConstructorDeclaration
JNDConstructorDeclaration: parse node for constructors. Body is not a simple block, since first statement may be an ExplicitConstructorInvocation which must be treated specially.
| Fields inherited from class edu.mit.ai.psg.jeva.SimpleNode |
children,
id,
parent |
| Method Summary | |
protected InterpretedConstructor |
computeConstructor(IEnv env)
Create constructor. |
void |
evalConstructorBody(Object target,
Object[] arguments,
IEnv classEnv)
eval constructor body AFTER explicit constructor invocation |
Object |
evalExplicitConstructorCallParameter(int paramIndex,
Object[] arguments,
IEnv classEnv)
|
InterpretedConstructor |
getConstructor()
|
int |
getFirstStatementIndex()
return index at which first statement can be inserted |
int |
getNumStatementNodes()
|
JNFormalParameterList |
getParametersNode()
|
IStatementNode |
getStatementNode(int i)
|
Object |
jjtAccept(IJevaVisitor visitor,
Object data)
Accept a visitor. |
IEnv |
verifyTypes(IEnv staticEnv,
IEnv objectEnv)
|
| 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 InterpretedConstructor getConstructor()
throws IllegalStateException
public JNFormalParameterList getParametersNode()
public int getNumStatementNodes()
public IStatementNode getStatementNode(int i)
public int getFirstStatementIndex()
protected InterpretedConstructor computeConstructor(IEnv env)
throws VerifyingException
public IEnv verifyTypes(IEnv staticEnv,
IEnv objectEnv)
throws VerifyingException
public Object evalExplicitConstructorCallParameter(int paramIndex,
Object[] arguments,
IEnv classEnv)
throws ThrowException
public void evalConstructorBody(Object target,
Object[] arguments,
IEnv classEnv)
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 | ||||||||