public interface CtWhile extends CtLoop
while
loop.
Example:
int x = 0; while (x!=10) { x=x+1; };
Modifier and Type | Method and Description |
---|---|
CtWhile |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<Boolean> |
getLoopingExpression()
Gets the looping boolean test expression.
|
<T extends CtWhile> |
setLoopingExpression(CtExpression<Boolean> expression)
Sets the looping boolean test expression.
|
getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
getOriginalSourceFragment
S
setBody
CtExpression<Boolean> getLoopingExpression()
<T extends CtWhile> T setLoopingExpression(CtExpression<Boolean> expression)
CtWhile 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–2019 Inria. All rights reserved.