public class CtTypeMemberWildcardImportReferenceImpl extends CtElementImpl implements CtTypeMemberWildcardImportReference
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtTypeMemberWildcardImportReferenceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
<E extends CtElement> |
addAnnotation(CtAnnotation<? extends java.lang.annotation.Annotation> annotation)
Add an annotation for this element
|
CtTypeMemberWildcardImportReferenceImpl |
clone()
Clone the element which calls this method in a new object.
|
java.util.List<CtAnnotation<? extends java.lang.annotation.Annotation>> |
getAnnotations()
Returns the annotations that are present on this element.
|
CtType<?> |
getDeclaration()
Returns the declaration that corresponds to the referenced element only
if the declaration is in the analyzed source files.
|
java.lang.String |
getSimpleName()
Returns the fully qualified name of type followed by `.*`
|
CtTypeReference<?> |
getTypeReference() |
boolean |
isImplicit()
Returns true if this element is not present in the code (automatically added by the
Java compiler or inferred when the model is built).
|
boolean |
removeAnnotation(CtAnnotation<? extends java.lang.annotation.Annotation> annotation)
Remove an annotation for this element
|
<E extends CtElement> |
setAnnotations(java.util.List<CtAnnotation<? extends java.lang.annotation.Annotation>> annotations)
Sets the annotations for this element.
|
<E extends CtElement> |
setImplicit(boolean implicit)
Sets this element to be implicit.
|
<T extends CtReference> |
setSimpleName(java.lang.String simpleName)
Sets the name of referenced element.
|
CtTypeMemberWildcardImportReferenceImpl |
setTypeReference(CtTypeReference<?> typeReference) |
addComment, asIterable, comment, delete, descendantIterator, emptyList, emptySet, equals, filterChildren, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getComments, getDirectChildren, getDocComment, getElements, getFactory, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hashCode, hasParent, isParentInitialized, map, map, prettyprint, putMetadata, removeComment, replace, replace, setAllMetadata, setComments, setDocComment, setFactory, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
setComments
addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isParentInitialized, prettyprint, putMetadata, removeComment, replace, replace, setAllMetadata, setDocComment, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
public CtTypeMemberWildcardImportReferenceImpl()
public CtTypeReference<?> getTypeReference()
getTypeReference
in interface CtTypeMemberWildcardImportReference
public CtTypeMemberWildcardImportReferenceImpl setTypeReference(CtTypeReference<?> typeReference)
setTypeReference
in interface CtTypeMemberWildcardImportReference
public java.lang.String getSimpleName()
CtTypeMemberWildcardImportReference
getSimpleName
in interface CtReference
getSimpleName
in interface CtTypeMemberWildcardImportReference
public <T extends CtReference> T setSimpleName(java.lang.String simpleName)
CtReference
setSimpleName
in interface CtReference
setSimpleName
in interface CtTypeMemberWildcardImportReference
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtTypeMemberWildcardImportReferenceImpl clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtElement
clone
in interface CtReference
clone
in interface CtTypeMemberWildcardImportReference
clone
in class CtElementImpl
public CtType<?> getDeclaration()
CtReference
CtTypeReference.getTypeDeclaration()
and CtExecutableReference.getExecutableDeclaration()
that never return null.getDeclaration
in interface CtReference
getDeclaration
in interface CtTypeMemberWildcardImportReference
public java.util.List<CtAnnotation<? extends java.lang.annotation.Annotation>> getAnnotations()
CtElement
getAnnotations
in interface CtElement
getAnnotations
in interface CtTypeMemberWildcardImportReference
getAnnotations
in class CtElementImpl
public <E extends CtElement> E addAnnotation(CtAnnotation<? extends java.lang.annotation.Annotation> annotation)
CtElement
addAnnotation
in interface CtElement
addAnnotation
in interface CtTypeMemberWildcardImportReference
addAnnotation
in class CtElementImpl
public boolean removeAnnotation(CtAnnotation<? extends java.lang.annotation.Annotation> annotation)
CtElement
removeAnnotation
in interface CtElement
removeAnnotation
in interface CtTypeMemberWildcardImportReference
removeAnnotation
in class CtElementImpl
public <E extends CtElement> E setAnnotations(java.util.List<CtAnnotation<? extends java.lang.annotation.Annotation>> annotations)
CtElement
setAnnotations
in interface CtElement
setAnnotations
in interface CtTypeMemberWildcardImportReference
setAnnotations
in class CtElementImpl
public boolean isImplicit()
CtElement
isImplicit
in interface CtElement
isImplicit
in interface CtTypeMemberWildcardImportReference
isImplicit
in class CtElementImpl
public <E extends CtElement> E setImplicit(boolean implicit)
CtElement
setImplicit
in interface CtElement
setImplicit
in interface CtTypeMemberWildcardImportReference
setImplicit
in class CtElementImpl
Copyright © 2007–2021 Inria. All rights reserved.