junc.ast
Class ConditionalAndExpNode

java.lang.Object
  |
  +--antlr.BaseAST
        |
        +--antlr.CommonAST
              |
              +--junc.ast.JUnCASTNode
                    |
                    +--junc.ast.ExpressionNode
                          |
                          +--junc.ast.ConditionalAndExpNode
All Implemented Interfaces:
antlr.collections.AST, java.io.Serializable

public class ConditionalAndExpNode
extends ExpressionNode

See Also:
Serialized Form

Field Summary
 junc.ast.ExpressionNode left
           
 junc.ast.ExpressionNode right
           
 
Fields inherited from class junc.ast.ExpressionNode
falseList, leftValue, statementExpression, trueList, type
 
Fields inherited from class antlr.BaseAST
down
 
Constructor Summary
ConditionalAndExpNode(junc.ast.ExpressionNode left, junc.ast.ExpressionNode right)
           
 
Method Summary
 java.math.BigDecimal evaluate(junc.symtab.SymbolTable symbolTable)
          Describe evaluate method here.
 void translate(org.apache.bcel.generic.ClassGen classGen, org.apache.bcel.generic.MethodGen methodGen)
          Translation: b1 and b2 b1 b2
 junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable symbolTable)
          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

left

public junc.ast.ExpressionNode left

right

public junc.ast.ExpressionNode right
Constructor Detail

ConditionalAndExpNode

public ConditionalAndExpNode(junc.ast.ExpressionNode left,
                             junc.ast.ExpressionNode right)
Method Detail

evaluate

public java.math.BigDecimal evaluate(junc.symtab.SymbolTable symbolTable)
                              throws NotConstantException
Description copied from class: ExpressionNode
Describe evaluate method here.

Overrides:
evaluate in class ExpressionNode
Parameters:
symbolTable - a SymbolTable value
Returns:
a BigDecimal value
Throws:
NotConstantException - if an error occurs

typeCheck

public junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable symbolTable)
                                  throws TypeCheckError
Description copied from class: ExpressionNode
Describe typeCheck method here.

Specified by:
typeCheck in class ExpressionNode
Parameters:
symbolTable - a SymbolTable value
Returns:
a JUnCBaseType value
Throws:
TypeCheckError - if an error occurs

translate

public void translate(org.apache.bcel.generic.ClassGen classGen,
                      org.apache.bcel.generic.MethodGen methodGen)
Translation: b1 and b2 b1 b2

Overrides:
translate in class ExpressionNode
Parameters:
classGen - a ClassGen value
methodGen - a MethodGen value