junc.ast
Class ForStatementNode

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

public class ForStatementNode
extends StatementNode

See Also:
Serialized Form

Field Summary
 junc.ast.ExpressionNode bound
           
 junc.ast.StatementNode init
           
 junc.ast.StatementNode statement
           
 junc.ast.StatementNode update
           
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
ForStatementNode()
           
 
Method Summary
 void translate(org.apache.bcel.generic.ClassGen classGen, org.apache.bcel.generic.MethodGen methodGen)
          Translation: for (i; b; u) s i 1: b [truelist := 2, falselist := 3] 2: s u goto 1 3: nop
 junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
           
 
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

statement

public junc.ast.StatementNode statement

init

public junc.ast.StatementNode init

bound

public junc.ast.ExpressionNode bound

update

public junc.ast.StatementNode update
Constructor Detail

ForStatementNode

public ForStatementNode()
Method Detail

typeCheck

public junc.types.JUnCBaseType typeCheck(junc.symtab.SymbolTable stable)
                                  throws TypeCheckError
Specified by:
typeCheck in class StatementNode
TypeCheckError

translate

public void translate(org.apache.bcel.generic.ClassGen classGen,
                      org.apache.bcel.generic.MethodGen methodGen)
Translation: for (i; b; u) s i 1: b [truelist := 2, falselist := 3] 2: s u goto 1 3: nop

Overrides:
translate in class StatementNode