T
- type of the variablepublic interface CtVariableAccess<T> extends CtExpression<T>
Modifier and Type | Method and Description |
---|---|
CtVariableAccess<T> |
clone()
Clone the element which calls this method in a new object.
|
CtTypeReference<T> |
getType()
Gets this element's type.
|
CtVariableReference<T> |
getVariable()
Gets the reference to the accessed variable.
|
<C extends CtVariableAccess<T>> |
setVariable(CtVariableReference<T> variable)
Sets the reference to the accessed variable.
|
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
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
CtVariableReference<T> getVariable()
<C extends CtVariableAccess<T>> C setVariable(CtVariableReference<T> variable)
CtVariableAccess<T> 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>
CtTypeReference<T> getType()
CtTypedElement
getType
in interface CtTypedElement<T>
Copyright © 2007–2021 Inria. All rights reserved.