edu.mit.ai.psg.jeva
Class JNEExclusiveOrExpression
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.JNEExclusiveOrExpression
- public class JNEExclusiveOrExpression
- extends LeftAssociativeOperatorExpression
Jeva parse Node for ^ Expressions
[JavaLangSpec 1.0 sec 15.21 Bitwise and Logical Operators].
| 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 interface: IJevaNode
- Accept a visitor. For visitor design pattern: jjtAccept must simply
return visitor.visit(this, data);
which dispatches on the type of this to appropriate method of visitor
- Overrides:
- jjtAccept in class JevaNode
binaryCombineTypes
public IClass binaryCombineTypes(Token operator,
IClass accumType,
IClass nextType)
- Description copied from class: LeftAssociativeOperatorExpression
- binaryCombineTypes -- IClass 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:
- IClass 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 - wraps exception thrown by operator.