|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--antlr.BaseAST
|
+--antlr.CommonAST
|
+--junc.ast.JUnCASTNode
|
+--junc.ast.ExpressionNode
|
+--junc.ast.AdditiveExpNode
Describe class AdditiveExpNode here.
| Field Summary | |
junc.ast.ExpressionNode |
left
Describe variable left here. |
int |
operator
Describe variable operator here. |
junc.ast.ExpressionNode |
parent
Describe variable parent here. |
junc.ast.ExpressionNode |
right
Describe variable right here. |
| Fields inherited from class junc.ast.ExpressionNode |
falseList, leftValue, statementExpression, trueList, type |
| Fields inherited from class antlr.BaseAST |
down |
| Constructor Summary | |
AdditiveExpNode(junc.ast.ExpressionNode left,
junc.ast.ExpressionNode right,
int operator)
Creates a new AdditiveExpNode instance. |
|
| Method Summary | |
java.math.BigDecimal |
evaluate(junc.symtab.SymbolTable stable)
Describe evaluate method here. |
boolean |
operationPlus()
Describe operationPlus method here. |
junc.types.JUnCBaseType |
stringType()
Describe stringType method here. |
void |
translate(org.apache.bcel.generic.ClassGen classGen,
org.apache.bcel.generic.MethodGen methodGen)
Describe translate method here. |
void |
translateStringConcat(org.apache.bcel.generic.ClassGen classGen,
org.apache.bcel.generic.MethodGen methodGen)
Describe translateStringConcat method here. |
junc.types.JUnCBaseType |
typeCheck(junc.symtab.SymbolTable stable)
Describe typeCheck method here. |
| Methods inherited from class junc.ast.ExpressionNode |
addFalseList, addTrueList, appendToFalseList, appendToTrueList, backPatch, desynthesize, evaluateExp, leftValue, lookupPrimop, superExp, synthesize, thisExp, thisOrSuperExp, translateSynthesized, type, typeExp, variableExp |
| Methods inherited from class junc.ast.JUnCASTNode |
getColumnNumber, getLineNumber, setColumnNumber, setLineNumber |
| Methods inherited from class antlr.CommonAST |
getText, getType, initialize, initialize, initialize, setText, setType |
| Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int operator
operator here.
public junc.ast.ExpressionNode left
left here.
public junc.ast.ExpressionNode right
right here.
public junc.ast.ExpressionNode parent
parent here.
null if leftmost AdditiveExp, otherwise next AdditiveExp to the left
is used in case of string concatenation
| Constructor Detail |
public AdditiveExpNode(junc.ast.ExpressionNode left,
junc.ast.ExpressionNode right,
int operator)
AdditiveExpNode instance.
left - an ExpressionNode valueright - an ExpressionNode valueoperator - an int value| Method Detail |
public junc.types.JUnCBaseType stringType()
stringType method here.
JUnCBaseType valuepublic boolean operationPlus()
operationPlus method here.
boolean value
public java.math.BigDecimal evaluate(junc.symtab.SymbolTable stable)
throws NotConstantException
evaluate method here.
evaluate in class ExpressionNodestable - a SymbolTable value
BigDecimal value
NotConstantException - if an error occurs
public junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
throws TypeCheckError
typeCheck method here.
typeCheck in class ExpressionNodestable - a SymbolTable value
JUnCBaseType value
TypeCheckError - if an error occurs
public void translateStringConcat(org.apache.bcel.generic.ClassGen classGen,
org.apache.bcel.generic.MethodGen methodGen)
translateStringConcat method here.
classGen - a ClassGen valuemethodGen - a MethodGen value
public void translate(org.apache.bcel.generic.ClassGen classGen,
org.apache.bcel.generic.MethodGen methodGen)
translate method here.
translate in class ExpressionNodeclassGen - a ClassGen valuemethodGen - a MethodGen value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||