public interface CtVariableReference<T> extends CtReference
CtVariable
or sub-type.Modifier and Type | Method and Description |
---|---|
CtVariableReference<T> |
clone()
Clone the element which calls this method in a new object.
|
CtVariable<T> |
getDeclaration()
Tries to get the declaration of the reference.
|
java.util.Set<ModifierKind> |
getModifiers()
Gets modifiers of the reference.
|
CtTypeReference<T> |
getType()
Gets the type of the variable.
|
<C extends CtVariableReference<T>> |
setType(CtTypeReference<T> type)
Sets the type of the variable.
|
getSimpleName, setComments, setSimpleName
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, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
accept
filterChildren, map, map
CtTypeReference<T> getType()
<C extends CtVariableReference<T>> C setType(CtTypeReference<T> type)
CtVariable<T> getDeclaration()
getDeclaration
in interface CtReference
java.util.Set<ModifierKind> getModifiers()
CtVariableReference<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtElement
clone
in interface CtReference
Copyright © 2007–2021 Inria. All rights reserved.