junc.ast
Class Literal

java.lang.Object
  |
  +--antlr.BaseAST
        |
        +--antlr.CommonAST
              |
              +--junc.ast.JUnCASTNode
                    |
                    +--junc.ast.ExpressionNode
                          |
                          +--junc.ast.Literal
All Implemented Interfaces:
antlr.collections.AST, java.io.Serializable
Direct Known Subclasses:
BooleanLiteral, CharacterLiteral, DoubleLiteral, FloatLiteral, IntegerLiteral, LongLiteral, NullLiteral, StringLiteral

public abstract class Literal
extends ExpressionNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class junc.ast.ExpressionNode
falseList, leftValue, statementExpression, trueList, type
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
Literal()
           
 
Method Summary
abstract  int addToConstantPool(org.apache.bcel.generic.ClassGen classGen)
           
abstract  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, translate, 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
 

Constructor Detail

Literal

public Literal()
Method Detail

typeCheck

public abstract 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

addToConstantPool

public abstract int addToConstantPool(org.apache.bcel.generic.ClassGen classGen)