ant.compiler.ast
Class Tree.TurnCommand

java.lang.Object
  extended byant.compiler.ast.Tree
      extended byant.compiler.ast.Tree.TurnCommand
Enclosing class:
Tree

public static class Tree.TurnCommand
extends Tree

Tree node representing turn Left|Right statements.

License: GPL

Author:
Bernhard Haumacher

Nested Class Summary
 
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
 
Field Summary
 TurnDirection direction
           
 
Fields inherited from class ant.compiler.ast.Tree
parent
 
Constructor Summary
Tree.TurnCommand(TurnDirection direction)
           
 
Method Summary
 void visit(Tree.Visitor v)
           
 
Methods inherited from class ant.compiler.ast.Tree
enclosingBlock, isChildOf, newNopStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

direction

public TurnDirection direction
Constructor Detail

Tree.TurnCommand

public Tree.TurnCommand(TurnDirection direction)
Method Detail

visit

public void visit(Tree.Visitor v)
Specified by:
visit in class Tree