public class CtForEachImpl extends CtLoopImpl implements CtForEach
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtForEachImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtForEach |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<?> |
getExpression()
Gets the iterated expression (an iterable of an array).
|
CtLocalVariable<?> |
getVariable()
Gets the variable that references the currently iterated element.
|
<T extends CtForEach> |
setExpression(CtExpression<?> expression)
Sets the iterated expression (an iterable of an array).
|
<T extends CtForEach> |
setVariable(CtLocalVariable<?> variable)
Sets the variable that references the currently iterated element.
|
getBody, getSubstitution, S, setBody
getLabel, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, setLabel
partiallyEvaluate
addAnnotation, addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isImplicit, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
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
filterChildren, map, map
S
setBody
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtExpression<?> getExpression()
CtForEach
getExpression
in interface CtForEach
public CtLocalVariable<?> getVariable()
CtForEach
getVariable
in interface CtForEach
public <T extends CtForEach> T setExpression(CtExpression<?> expression)
CtForEach
setExpression
in interface CtForEach
public <T extends CtForEach> T setVariable(CtLocalVariable<?> variable)
CtForEach
setVariable
in interface CtForEach
public CtForEach clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtForEach
clone
in interface CtLoop
clone
in interface CtStatement
clone
in interface CtElement
clone
in class CtLoopImpl
Copyright © 2007–2021 Inria. All rights reserved.