public interface CtDo extends CtLoop
do
loop.
Example:
int x = 0; do { x=x+1; } while (x<10);
Modifier and Type | Method and Description |
---|---|
CtDo |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<java.lang.Boolean> |
getLoopingExpression()
Returns the looping test as a boolean expression.
|
<T extends CtDo> |
setLoopingExpression(CtExpression<java.lang.Boolean> expression)
Sets the looping test as a boolean expression.
|
comment, getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
S
setBody
CtExpression<java.lang.Boolean> getLoopingExpression()
<T extends CtDo> T setLoopingExpression(CtExpression<java.lang.Boolean> expression)
CtDo clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtElement
clone
in interface CtLoop
clone
in interface CtStatement
Copyright © 2007–2021 Inria. All rights reserved.