edu.mit.ai.psg.jeva
Class JNEEqualityExpression

java.lang.Object
  |
  +--edu.mit.ai.psg.jeva.SimpleNode
        |
        +--edu.mit.ai.psg.jeva.JevaNode
              |
              +--edu.mit.ai.psg.jeva.ExpressionNode
                    |
                    +--edu.mit.ai.psg.jeva.LeftAssociativeOperatorExpression
                          |
                          +--edu.mit.ai.psg.jeva.JNEEqualityExpression

public class JNEEqualityExpression
extends LeftAssociativeOperatorExpression
implements JevaParserConstants

Jeva parse Node for == and != Expressions [JavaLangSpec 1.0 sec 15.20 Equality Operators].

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

Fields inherited from class edu.mit.ai.psg.jeva.SimpleNode
children, id, parent
 
Method Summary
 Object binaryCombine(Token operator, Object accumResult, Object nextResult)
          [JavaLangSpec 1.0 sec 15.20 Equality Operators]
 IClass binaryCombineTypes(Token operator, IClass leftType, IClass rightType)
          operands must either both be numeric, both be boolean, or both be references or null [JavaLangSpec 1.0 sec 15.20]
 Object jjtAccept(IJevaVisitor visitor, Object data)
           
 
Methods inherited from class edu.mit.ai.psg.jeva.LeftAssociativeOperatorExpression
computeIsConstant, computeType, eval
 
Methods inherited from class edu.mit.ai.psg.jeva.ExpressionNode
getType, getType, getValue, isConstant
 
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, print, print, printToken, printToString, printToString, removeChild, removeChildTokens, replaceChild, replaceChild, setBeginToken, setEndToken, 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)
Overrides:
jjtAccept in class JevaNode

binaryCombineTypes

public IClass binaryCombineTypes(Token operator,
                                 IClass leftType,
                                 IClass rightType)
operands must either both be numeric, both be boolean, or both be references or null [JavaLangSpec 1.0 sec 15.20]
Overrides:
binaryCombineTypes in class LeftAssociativeOperatorExpression

binaryCombine

public Object binaryCombine(Token operator,
                            Object accumResult,
                            Object nextResult)
                     throws ThrowException
[JavaLangSpec 1.0 sec 15.20 Equality Operators]
Overrides:
binaryCombine in class LeftAssociativeOperatorExpression

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu