polyglot.ext.jl.ast
Class Loop_c

java.lang.Object
  extended by polyglot.ext.jl.ast.Node_c
      extended by polyglot.ext.jl.ast.Term_c
          extended by polyglot.ext.jl.ast.Stmt_c
              extended by polyglot.ext.jl.ast.Loop_c
All Implemented Interfaces:
java.lang.Cloneable, CompoundStmt, JL, Loop, Node, NodeOps, Stmt, Term, Copy
Direct Known Subclasses:
Do_c, For_c, While_c

public abstract class Loop_c
extends Stmt_c
implements 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.


Field Summary
 
Fields inherited from class polyglot.ext.jl.ast.Term_c
exceptions, reachable
 
Fields inherited from class polyglot.ext.jl.ast.Node_c
del, ext, position
 
Constructor Summary
Loop_c(Position pos)
           
 
Method Summary
 boolean condIsConstant()
          Returns true of cond() evaluates to a constant.
 boolean condIsConstantTrue()
          Returns true if cond() is a constant that evaluates to true.
 
Methods inherited from class polyglot.ext.jl.ast.Term_c
acceptCFG, entry, exceptionCheck, exceptions, exceptions, listEntry, reachable, reachable
 
Methods inherited from class polyglot.ext.jl.ast.Node_c
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypes, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, enterScope, enterScope, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, prettyPrint, print, printBlock, printSubStmt, throwTypes, toString, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitChildren, visitEdge, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.ast.Loop
body, cond, 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
 

Constructor Detail

Loop_c

public Loop_c(Position pos)
Method Detail

condIsConstant

public boolean condIsConstant()
Description copied from interface: Loop
Returns true of cond() evaluates to a constant.

Specified by:
condIsConstant in interface Loop

condIsConstantTrue

public boolean condIsConstantTrue()
Description copied from interface: Loop
Returns true if cond() is a constant that evaluates to true.

Specified by:
condIsConstantTrue in interface Loop