edu.mit.ai.psg.jeva
Class JNSVariableDeclarator
java.lang.Object
|
+--edu.mit.ai.psg.jeva.SimpleNode
|
+--edu.mit.ai.psg.jeva.JevaNode
|
+--edu.mit.ai.psg.jeva.JNSVariableDeclarator
- public class JNSVariableDeclarator
- extends JevaNode
Jeva parse Node for variable declators, a component in variable
declaration statements and field declarations.
| Methods inherited from class edu.mit.ai.psg.jeva.JevaNode |
checkInsertionPoint,
find2ndTokenBeforeEndBody,
findChildIndex,
findPrecedingToken,
findTokenBeforeChild,
findTokenBeforeChild,
findTokenBeforeEnd,
getBeginToken,
getEndToken,
insertChildTokens,
insertNewChildAfter,
insertNewChildAt,
insertNewChildBefore,
jnGetChild,
jnGetParent,
notVerified,
print,
print,
printSpecialTokens,
printToken,
printToString,
printToString,
removeChild,
removeChildTokens,
replaceChild,
replaceChild,
setBeginToken,
setEndToken,
shouldNotHappen,
shouldNotHappen,
shouldNotHappen,
updateEndTokens,
updateEndTokensPriorChild,
updateEndTokensPriorNode,
updateEndTokensPriorNode |
jjtAccept
public Object jjtAccept(IJevaVisitor visitor,
Object data)
- Description copied from class: JevaNode
- Accept a visitor. For Visitor design pattern.
- Overrides:
- jjtAccept in class JevaNode
getInitializer
public IJevaNode getInitializer()
getName
public String getName()
getType
public IClass getType()
verifyTypes
public IEnv verifyTypes(boolean isField,
int modifiers,
IClass baseType,
IEnv env)
throws VerifyingException
extendEnv
public IEnv extendEnv(int modifiers,
IEnv env)
throws ThrowException
- evaluates variable initializer and extends local environment with value
evalInitializer
public Object evalInitializer(IEnv initializerEnv)
throws ThrowException
- also used by interpreted fields to initialize value