T
- type of assigned expressionA
- type of expression to assign, it should extends <T>public interface CtAssignment<T,A extends T> extends CtStatement, CtExpression<T>, CtRHSReceiver<A>
int x; x = 4; // <-- an assignment
Modifier and Type | Method and Description |
---|---|
CtAssignment<T,A> |
clone()
Clone the element which calls this method in a new object.
|
CtExpression<T> |
getAssigned()
Returns the assigned expression on the left-hand side (where the value is stored,
e.g.
|
<C extends CtAssignment<T,A>> |
setAssigned(CtExpression<T> assigned)
Sets the assigned expression (left hand side - LHS).
|
comment, getLabel, insertAfter, insertAfter, insertBefore, insertBefore, setLabel
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
getType, setType
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
getAssignment, setAssignment
CtExpression<T> getAssigned()
<C extends CtAssignment<T,A>> C setAssigned(CtExpression<T> assigned)
CtAssignment<T,A> 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 CtExpression<T>
clone
in interface CtStatement
Copyright © 2007–2021 Inria. All rights reserved.