public class CtTypeAccessImpl<A> extends CtExpressionImpl<java.lang.Void> implements CtTypeAccess<A>
ERROR_MESSAGE_TO_STRING, factory, LOGGER, parent
Constructor and Description |
---|
CtTypeAccessImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor visitor)
Accepts a visitor
|
CtTypeAccess<A> |
clone()
Clone the element which calls this method in a new object.
|
CtTypeReference<A> |
getAccessedType()
Returns type represented and contained in the type access.
|
CtTypeReference<java.lang.Void> |
getType()
Gets this element's type.
|
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).
|
<C extends CtTypeAccess<A>> |
setAccessedType(CtTypeReference<A> accessedType)
Set the accessed type.
|
<E extends CtElement> |
setImplicit(boolean implicit)
Sets this element to be implicit.
|
<C extends CtTypedElement> |
setType(CtTypeReference<java.lang.Void> type)
Sets this element's type.
|
addTypeCast, getTypeCasts, S, setTypeCasts
partiallyEvaluate
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, isParentInitialized, map, map, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
addTypeCast, getTypeCasts, setTypeCasts
partiallyEvaluate
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, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
S
public void accept(CtVisitor visitor)
CtVisitable
accept
in interface CtVisitable
public CtTypeReference<A> getAccessedType()
CtTypeAccess
getAccessedType
in interface CtTypeAccess<A>
public <C extends CtTypeAccess<A>> C setAccessedType(CtTypeReference<A> accessedType)
CtTypeAccess
setAccessedType
in interface CtTypeAccess<A>
accessedType
- CtTypeReference.public CtTypeReference<java.lang.Void> getType()
CtTypedElement
getType
in interface CtTypeAccess<A>
getType
in interface CtTypedElement<java.lang.Void>
getType
in class CtExpressionImpl<java.lang.Void>
to get the accessed type.
public <C extends CtTypedElement> C setType(CtTypeReference<java.lang.Void> type)
CtTypedElement
setType
in interface CtTypeAccess<A>
setType
in interface CtTypedElement<java.lang.Void>
setType
in class CtExpressionImpl<java.lang.Void>
public boolean isImplicit()
CtElement
isImplicit
in interface CtTypeAccess<A>
isImplicit
in interface CtElement
isImplicit
in class CtElementImpl
CtTypeAccess.getAccessedType()
.isImplicit()public <E extends CtElement> E setImplicit(boolean implicit)
CtElement
setImplicit
in interface CtTypeAccess<A>
setImplicit
in interface CtElement
setImplicit
in class CtElementImpl
public CtTypeAccess<A> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtCodeElement
clone
in interface CtExpression<java.lang.Void>
clone
in interface CtTypeAccess<A>
clone
in interface CtElement
clone
in class CtExpressionImpl<java.lang.Void>
Copyright © 2007–2021 Inria. All rights reserved.