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.


Fields inherited from class edu.mit.ai.psg.jeva.SimpleNode
children, id, parent
 
Method Summary
 Object evalInitializer(IEnv initializerEnv)
          also used by interpreted fields to initialize value
 IEnv extendEnv(int modifiers, IEnv env)
          evaluates variable initializer and extends local environment with value
 IJevaNode getInitializer()
           
 String getName()
           
 IClass getType()
           
 Object jjtAccept(IJevaVisitor visitor, Object data)
          Accept a visitor.
 IEnv verifyTypes(boolean isField, int modifiers, IClass baseType, IEnv env)
           
 
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
 
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

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

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu