edu.mit.ai.psg.jevaES
Class JNEInstanceOfExpression

java.lang.Object
  |
  +--edu.mit.ai.psg.jevaES.SimpleNode
        |
        +--edu.mit.ai.psg.jevaES.JevaNode
              |
              +--edu.mit.ai.psg.jevaES.ExpressionNode
                    |
                    +--edu.mit.ai.psg.jevaES.JNEInstanceOfExpression

public class JNEInstanceOfExpression
extends ExpressionNode

Jeva parse Node for Expr instanceof Class [JavaLangSpec1.0 sec15.19.2 Type Comparison Operator instanceof]

Author:
CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998 Massachusetts Institute of Technology

Fields inherited from class edu.mit.ai.psg.jevaES.SimpleNode
children, id, parent
 
Method Summary
 boolean computeIsConstant(IEnv env)
           
 Class computeType(IEnv env)
          checks for legal subexpression and class types [JLS1.0sec15.19.2]
 Object eval(IEnv env)
          [JavaLangSpec1.0 sec15.19.2 Type Comparison Operator instanceof]
 IExpressionNode getExpressionNode()
           
 JNType getTypeNode()
           
 
Methods inherited from class edu.mit.ai.psg.jevaES.ExpressionNode
getType, getValue, isConstant
 
Methods inherited from class edu.mit.ai.psg.jevaES.JevaNode
getBeginToken, getEndToken, print, print, printToken, printToString, printToString, setBeginToken, setEndToken
 
Methods inherited from class edu.mit.ai.psg.jevaES.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

getExpressionNode

public IExpressionNode getExpressionNode()

getTypeNode

public JNType getTypeNode()

computeType

public Class computeType(IEnv env)
                  throws VerifyingException
checks for legal subexpression and class types [JLS1.0sec15.19.2]
Overrides:
computeType in class ExpressionNode

computeIsConstant

public boolean computeIsConstant(IEnv env)
                          throws VerifyingException
Overrides:
computeIsConstant in class ExpressionNode

eval

public Object eval(IEnv env)
            throws ThrowException
[JavaLangSpec1.0 sec15.19.2 Type Comparison Operator instanceof]
Overrides:
eval in class ExpressionNode

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu