polyglot.ast
Interface Do

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

public interface Do
extends Loop

A Java language do statement. It contains a statement to be executed and an expression to be tested indicating whether to reexecute the statement.


Method Summary
 Do body(Stmt body)
          Set the body of the do statement.
 Do cond(Expr cond)
          Set the condition of the do statement.
 
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

body

Do body(Stmt body)
Set the body of the do statement.


cond

Do cond(Expr cond)
Set the condition of the do statement.