edu.mit.ai.psg.jevaES
Class JNEInclusiveOrExpression

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.LeftAssociativeOperatorExpression
                          |
                          +--edu.mit.ai.psg.jevaES.JNEInclusiveOrExpression

public class JNEInclusiveOrExpression
extends LeftAssociativeOperatorExpression

Jeva parse Node for | Expressions [JavaLangSpec 1.0 sec 15.21 Bitwise and Logical Operators].


Fields inherited from class edu.mit.ai.psg.jevaES.SimpleNode
children, id, parent
 
Method Summary
 Object binaryCombine(Token operator, Object accumResult, Object nextResult)
          binaryCombine -- combine two values, implemented in subclasses
 Class binaryCombineTypes(Token operator, Class accumType, Class nextType)
          binaryCombineTypes -- Class of result of combining two types; implemented in subclasses
 
Methods inherited from class edu.mit.ai.psg.jevaES.LeftAssociativeOperatorExpression
computeIsConstant, computeType, eval
 
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, notVerified, print, print, printToken, printToString, printToString, setBeginToken, setEndToken, shouldNotHappen, shouldNotHappen, shouldNotHappen
 
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

binaryCombineTypes

public Class binaryCombineTypes(Token operator,
                                Class accumType,
                                Class nextType)
Description copied from class: LeftAssociativeOperatorExpression
binaryCombineTypes -- Class of result of combining two types; implemented in subclasses
Overrides:
binaryCombineTypes in class LeftAssociativeOperatorExpression
Tags copied from class: LeftAssociativeOperatorExpression
Parameters:
operator - is the Token between expressions (e.g., +,-,*,/,...)
accumResult - is result of accumulating the expressions to the left of the operator.
nextResult - is result of evaluating the next expression to the right of the operator.
Returns:
Class of result of the combining accumResult and nextResult with operator.
Throws:
IllegalArgumentException - if types not acceptable

binaryCombine

public Object binaryCombine(Token operator,
                            Object accumResult,
                            Object nextResult)
                     throws ThrowException
Description copied from class: LeftAssociativeOperatorExpression
binaryCombine -- combine two values, implemented in subclasses
Overrides:
binaryCombine in class LeftAssociativeOperatorExpression
Tags copied from class: LeftAssociativeOperatorExpression
Parameters:
operator - is the Token between expressions (e.g., +,-,*,/,...)
accumResult - is result of accumulating the expressions to the left of the operator.
nextResult - is result of evaluating the next expression to the right of the operator.
Returns:
result of the combining accumResult and nextResult with operator
Throws:
ThrowException - if expression completes abruptly with exception

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu