RECODER 0.92

recoder.java.statement
Class Do

java.lang.Object
  extended by recoder.java.JavaSourceElement
      extended by recoder.java.JavaProgramElement
          extended by recoder.java.JavaNonTerminalProgramElement
              extended by recoder.java.statement.JavaStatement
                  extended by recoder.java.statement.LoopStatement
                      extended by recoder.java.statement.Do
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ExpressionContainer, NonTerminalProgramElement, ProgramElement, SourceElement, Statement, StatementContainer, ModelElement

public class Do
extends LoopStatement

Do.

Author:
AutoDoc
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface recoder.java.ProgramElement
ProgramElement.TreeStructure
 
Nested classes/interfaces inherited from interface recoder.java.SourceElement
SourceElement.Position
 
Nested classes/interfaces inherited from interface recoder.java.ProgramElement
ProgramElement.TreeStructure
 
Nested classes/interfaces inherited from interface recoder.java.SourceElement
SourceElement.Position
 
Field Summary
 
Fields inherited from class recoder.java.JavaSourceElement
factory
 
Fields inherited from interface recoder.java.ProgramElement
STRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE
 
Fields inherited from interface recoder.java.ProgramElement
STRUCTURAL_EQUALITY, STRUCTURAL_HASH_CODE
 
Constructor Summary
  Do()
          Do.
protected Do(Do proto)
          Do.
  Do(Expression guard)
          Do.
  Do(Expression guard, Statement body)
          Do.
 
Method Summary
 void accept(SourceVisitor v)
          Receive a visitor, for instance a pretty printer.
 Do deepClone()
          Deep clone.
 SourceElement getLastElement()
          Finds the source element that occurs last in the source.
 boolean isCheckedBeforeIteration()
          Is checked before iteration.
 boolean isExitCondition()
          Is exit condition.
 
Methods inherited from class recoder.java.statement.LoopStatement
getBody, getChildAt, getChildCount, getChildPositionCode, getExpressionAt, getExpressionCount, getGuard, getInitializers, getStatementAt, getStatementCount, getUpdates, makeParentRoleValid, replaceChild, setBody, setGuard, setInitializers, setUpdates
 
Methods inherited from class recoder.java.statement.JavaStatement
getASTParent, getStatementContainer, setStatementContainer
 
Methods inherited from class recoder.java.JavaNonTerminalProgramElement
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
 
Methods inherited from class recoder.java.JavaProgramElement
getComments, getID, setComments, validate
 
Methods inherited from class recoder.java.JavaSourceElement
getEndPosition, getFactory, getFirstElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface recoder.java.NonTerminalProgramElement
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
 
Methods inherited from interface recoder.java.ProgramElement
getASTParent, getComments, getID, setComments
 
Methods inherited from interface recoder.java.SourceElement
getEndPosition, getFactory, getFirstElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource
 
Methods inherited from interface recoder.ModelElement
validate
 
Methods inherited from interface recoder.java.NonTerminalProgramElement
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
 
Methods inherited from interface recoder.java.ProgramElement
getASTParent, getComments, getID, setComments
 
Methods inherited from interface recoder.java.SourceElement
getEndPosition, getFactory, getFirstElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource
 
Methods inherited from interface recoder.ModelElement
validate
 

Constructor Detail

Do

public Do()
Do.


Do

public Do(Expression guard)
Do.

Parameters:
guard - an expression.

Do

public Do(Expression guard,
          Statement body)
Do.

Parameters:
guard - an expression.
body - a statement.

Do

protected Do(Do proto)
Do.

Parameters:
proto - a do.
Method Detail

deepClone

public Do deepClone()
Deep clone.

Specified by:
deepClone in interface SourceElement
Specified by:
deepClone in interface Statement
Specified by:
deepClone in class LoopStatement
Returns:
the object.

getLastElement

public SourceElement getLastElement()
Description copied from class: JavaSourceElement
Finds the source element that occurs last in the source. The default implementation returns this element, which is correct for all terminal program elements, and many non terminals such as statements and prefixed operators.

Specified by:
getLastElement in interface SourceElement
Overrides:
getLastElement in class JavaSourceElement
Returns:
the last source element in the syntactical representation of this element, may be equals to this element.
See Also:
JavaSourceElement.toSource(), JavaSourceElement.getEndPosition()

isExitCondition

public boolean isExitCondition()
Is exit condition.

Specified by:
isExitCondition in class LoopStatement
Returns:
the boolean value.

isCheckedBeforeIteration

public boolean isCheckedBeforeIteration()
Is checked before iteration.

Specified by:
isCheckedBeforeIteration in class LoopStatement
Returns:
the boolean value.

accept

public void accept(SourceVisitor v)
Description copied from interface: SourceElement
Receive a visitor, for instance a pretty printer.

Parameters:
v - a source visitor.

RECODER 0.92