polyglot.ast
Interface While

All Superinterfaces:
java.lang.Cloneable, CompoundStmt, Copy, JL, Loop, Node, NodeOps, Stmt, Term
All Known Implementing Classes:
While_c

public interface While
extends Loop

An immutable representation of a Java language while statement. It contains a statement to be executed and an expression to be tested indicating whether to reexecute the statement.


Method Summary
 While body(Stmt body)
          Set the loop body.
 While cond(Expr cond)
          Set the loop condition.
 
Methods inherited from interface polyglot.ast.Loop
body, cond, condIsConstant, condIsConstantTrue, continueTarget
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

cond

While cond(Expr cond)
Set the loop condition.


body

While body(Stmt body)
Set the loop body.