public class CtLocalVariableReferenceImpl<T> extends CtVariableReferenceImpl<T> implements CtLocalVariableReference<T>
CtLocalVariableReference
.simplename
ERROR_MESSAGE_TO_STRING, LOGGER, parent
Constructor and Description |
---|
CtLocalVariableReferenceImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtLocalVariableReference<T> |
clone()
Clone the element which calls this method in a new object.
|
CtLocalVariable<T> |
getDeclaration()
Tries to get the declaration of the reference.
|
getActualAnnotatedElement, getModifiers, getType, setType
equals, getSimpleName, setComments, setSimpleName
addAnnotation, addComment, asIterable, delete, descendantIterator, emptyList, emptySet, 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, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
getModifiers, getType, setType
getSimpleName, setComments, setSimpleName
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, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
getOriginalSourceFragment
public CtLocalVariableReferenceImpl()
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
accept
in class CtVariableReferenceImpl<T>
public CtLocalVariable<T> getDeclaration()
CtVariableReference
getDeclaration
in interface CtLocalVariableReference<T>
getDeclaration
in interface CtReference
getDeclaration
in interface CtVariableReference<T>
getDeclaration
in class CtVariableReferenceImpl<T>
public CtLocalVariableReference<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtElement
clone
in interface CtLocalVariableReference<T>
clone
in interface CtReference
clone
in interface CtVariableReference<T>
clone
in class CtVariableReferenceImpl<T>
Copyright © 2007–2019 Inria. All rights reserved.