public abstract class CtNamedElementImpl extends CtElementImpl implements CtNamedElement
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtNamedElementImpl() |
Modifier and Type | Method and Description |
---|---|
CtNamedElement |
clone()
Clone the element which calls this method in a new object.
|
CtReference |
getReference()
Returns the corresponding reference.
|
java.lang.String |
getSimpleName()
Returns the simple (unqualified) name of this element.
|
<T extends CtNamedElement> |
setSimpleName(java.lang.String simpleName)
Sets the simple (unqualified) name of this element.
|
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
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
public CtReference getReference()
CtNamedElement
getReference
in interface CtNamedElement
public java.lang.String getSimpleName()
CtNamedElement
getSimpleName
in interface CtNamedElement
public <T extends CtNamedElement> T setSimpleName(java.lang.String simpleName)
CtNamedElement
setSimpleName
in interface CtNamedElement
public CtNamedElement clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtElement
clone
in interface CtNamedElement
clone
in class CtElementImpl
Copyright © 2007–2021 Inria. All rights reserved.