ant.compiler.ast
Class Tree.RandomTest

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

public static class Tree.RandomTest
extends Tree.Expression

Tree node representing the construct random(n).

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
 int probability
           
 
Fields inherited from class ant.compiler.ast.Tree
parent
 
Constructor Summary
Tree.RandomTest(int probability)
           
 
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

probability

public int probability
Constructor Detail

Tree.RandomTest

public Tree.RandomTest(int probability)
Method Detail

visit

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