junc.ast
Class BlockNode

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

public class BlockNode
extends StatementNode

Describe class BlockNode here.

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

Field Summary
 java.util.Vector statements
          Describe variable statements here.
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
BlockNode()
          Creates a new BlockNode instance.
 
Method Summary
 void addStatement(junc.ast.StatementNode stmt)
          Describe addStatement method here.
 int numberOfStatments()
          Describe numberOfStatments method here.
 void reset()
          Describe reset method here.
 junc.ast.StatementNode statementAt(int n)
          Describe statementAt method here.
 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

statements

public java.util.Vector statements
Describe variable statements here.

Constructor Detail

BlockNode

public BlockNode()
Creates a new BlockNode instance.

Method Detail

addStatement

public void addStatement(junc.ast.StatementNode stmt)
Describe addStatement method here.

Parameters:
stmt - a StatementNode value

reset

public void reset()
Describe reset method here.


numberOfStatments

public int numberOfStatments()
Describe numberOfStatments method here.

Returns:
an int value

statementAt

public junc.ast.StatementNode statementAt(int n)
Describe statementAt method here.

Parameters:
n - an int value
Returns:
a StatementNode value

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