ant.compiler.ast
Class Tree.Block
java.lang.Object
ant.compiler.ast.Tree
ant.compiler.ast.Tree.Block
- Enclosing class:
- Tree
- public static class Tree.Block
- extends Tree
Tree node representing {...}
statements.
License: GPL
- Author:
- Bernhard Haumacher
Nested classes inherited from class ant.compiler.ast.Tree |
Tree.AndExpression, Tree.Assign, Tree.BinaryExpression, Tree.Block, Tree.Call, Tree.ConditionTest, Tree.Const, Tree.DropCommand, Tree.Expression, Tree.FoodTest, Tree.Goto, Tree.If, Tree.Label, Tree.MarkCommand, Tree.MoveCommand, Tree.NotExpression, Tree.OrExpression, Tree.PickUpCommand, Tree.Proc, Tree.RandomTest, Tree.Set, Tree.Test, Tree.TurnCommand, Tree.UnmarkCommand, Tree.Var, Tree.Visitor, Tree.WallTest |
Fields inherited from class ant.compiler.ast.Tree |
parent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stmts
public Tree[] stmts
localVars
private java.util.ArrayList localVars
Tree.Block
public Tree.Block(Tree[] stmts)
addLocalVariable
public void addLocalVariable(Tree.Var var)
getLocalVariableIndex
public int getLocalVariableIndex(Tree.Var var)
getLocalVariableCnt
public int getLocalVariableCnt()
getLocalVariable
public Tree.Var getLocalVariable(int index)
clearLocalVariables
public void clearLocalVariables()
visit
public void visit(Tree.Visitor v)
- Specified by:
visit
in class Tree