junc.ast
Class ArrayExpNode

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

public class ArrayExpNode
extends ExpressionNode

Describe class ArrayExpNode here.

Version:
1.0
Author:
Diwaker Gupta
See Also:
Serialized Form

Field Summary
 junc.ast.ExpressionNode left
          Describe variable left 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
ArrayExpNode(junc.ast.ExpressionNode left, junc.ast.ExpressionNode right)
          Creates a new ArrayExpNode instance.
 
Method Summary
 void translate(org.apache.bcel.generic.ClassGen classGen, org.apache.bcel.generic.MethodGen methodGen)
          Describe translate method here.
 org.apache.bcel.generic.BranchHandle translateSynthesized(org.apache.bcel.generic.ClassGen classGen, org.apache.bcel.generic.MethodGen methodGen)
          Describe translateSynthesized method here.
 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, evaluate, evaluateExp, leftValue, lookupPrimop, superExp, synthesize, thisExp, thisOrSuperExp, 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
Describe variable left here.


right

public junc.ast.ExpressionNode right
Describe variable right here.

Constructor Detail

ArrayExpNode

public ArrayExpNode(junc.ast.ExpressionNode left,
                    junc.ast.ExpressionNode right)
Creates a new ArrayExpNode instance.

Parameters:
left - an ExpressionNode value
right - an ExpressionNode value
Method Detail

typeCheck

public junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable symbolTable)
                                  throws TypeCheckError
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

translateSynthesized

public org.apache.bcel.generic.BranchHandle translateSynthesized(org.apache.bcel.generic.ClassGen classGen,
                                                                 org.apache.bcel.generic.MethodGen methodGen)
Describe translateSynthesized method here.

Overrides:
translateSynthesized in class ExpressionNode
Parameters:
classGen - a ClassGen value
methodGen - a MethodGen value
Returns:
a BranchHandle value

translate

public void translate(org.apache.bcel.generic.ClassGen classGen,
                      org.apache.bcel.generic.MethodGen methodGen)
Describe translate method here.

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