junc.ast
Class StatementExpNode

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

public class StatementExpNode
extends StatementNode

See Also:
Serialized Form

Field Summary
 junc.ast.ExpressionNode expression
          Describe variable expression here.
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
StatementExpNode()
          Creates a new StatementExpNode instance.
StatementExpNode(junc.ast.ExpressionNode expr)
          Creates a new StatementExpNode instance.
 
Method Summary
 void translate(org.apache.bcel.generic.ClassGen classGen, org.apache.bcel.generic.MethodGen methodGen)
          Describe translate method here.
 junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
          Describe typeCheck method here.
 
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

expression

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

Constructor Detail

StatementExpNode

public StatementExpNode()
Creates a new StatementExpNode instance.


StatementExpNode

public StatementExpNode(junc.ast.ExpressionNode expr)
Creates a new StatementExpNode instance.

Parameters:
expr - an ExpressionNode value
Method Detail

typeCheck

public junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
                                  throws TypeCheckError
Describe typeCheck method here.

Specified by:
typeCheck in class StatementNode
Parameters:
stable - 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)
Describe translate method here.

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