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.
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
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 |
cond
public While cond(Expr cond)
- Set the loop condition.
body
public While body(Stmt body)
- Set the loop body.