public class Do extends LoopStatement
body, guard, inits, updates| Constructor and Description |
|---|
Do()
Do.
|
Do(Expression guard)
Do.
|
Do(Expression guard,
Statement body,
ExtList l,
PositionInfo pos)
Do.
|
Do(Expression guard,
Statement body,
PositionInfo pos)
Do.
|
| Modifier and Type | Method and Description |
|---|---|
SourceElement |
getLastElement()
Finds the source element that occurs last in the source.
|
boolean |
isCheckedBeforeIteration()
Is checked before iteration.
|
void |
prettyPrint(PrettyPrinter p)
Pretty printing the source element.
|
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to
perform some action/transformation on this element
|
equals, getBody, getChildAt, getChildCount, getExpressionAt, getExpressionCount, getGuard, getGuardExpression, getIForUpdates, getILoopInit, getInitializers, getStatementAt, getStatementCount, getUpdatescompatibleBlockSize, computeHashCode, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchequalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getPositionInfo, getRelativePosition, getStartPositionpublic Do()
public Do(Expression guard)
guard - an expression.public Do(Expression guard, Statement body, ExtList l, PositionInfo pos)
guard - an expression.body - a statement.public Do(Expression guard, Statement body, PositionInfo pos)
guard - an expression.body - a statement.public SourceElement getLastElement()
JavaSourceElementgetLastElement in interface SourceElementgetLastElement in class JavaSourceElementJavaSourceElement.toSource(),
JavaSourceElement.getEndPosition()public boolean isCheckedBeforeIteration()
isCheckedBeforeIteration in class LoopStatementpublic void visit(Visitor v)
v - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.