|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.JNEShiftExpression
Jeva parse Node for <<, >>, >>> expressions [JavaLangSpec 1.0 sec 15.18 Shift Operators].
| Fields inherited from class edu.mit.ai.psg.jeva.SimpleNode |
children,
id,
parent |
| Method Summary | |
Object |
binaryCombine(Token operator,
Object leftResult,
Object rightResult)
[JavaLangSpec 1.0 sec 15.18 Shift Operators] |
IClass |
binaryCombineTypes(Token operator,
IClass leftType,
IClass rightType)
binaryCombineTypes -- IClass of result of combining two types; implemented in subclasses |
Object |
jjtAccept(IJevaVisitor visitor,
Object data)
Accept a visitor. |
| 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.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 |
public Object jjtAccept(IJevaVisitor visitor,
Object data)
return visitor.visit(this, data);which dispatches on the type of this to appropriate method of visitor
public IClass binaryCombineTypes(Token operator,
IClass leftType,
IClass rightType)
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.
public Object binaryCombine(Token operator,
Object leftResult,
Object rightResult)
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.
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||