public class CtAnnotationMethodImpl<T> extends CtMethodImpl<T> implements CtAnnotationMethod<T>
CtAnnotationMethod
.ERROR_MESSAGE_TO_STRING, LOGGER, parent
EXECUTABLE_SEPARATOR
Constructor and Description |
---|
CtAnnotationMethodImpl() |
Modifier and Type | Method and Description |
---|---|
void |
accept(CtVisitor v)
Accepts a visitor
|
CtAnnotationMethod<T> |
clone()
Clone the element which calls this method in a new object.
|
CtBlock<T> |
getBody()
Gets the body expression.
|
CtExpression<T> |
getDefaultExpression()
Gets the default expression assigned to the annotation method.
|
List<CtTypeParameter> |
getFormalCtTypeParameters()
Returns the formal type parameters of this generic element.
|
List<CtParameter<?>> |
getParameters()
Gets the parameters list.
|
Set<CtTypeReference<? extends Throwable>> |
getThrownTypes()
Returns the exceptions and other throwables listed in this method or
constructor's throws clause.
|
<T extends CtBodyHolder> |
setBody(CtStatement statement)
Sets the body of this element.
|
<C extends CtAnnotationMethod<T>> |
setDefaultExpression(CtExpression<T> assignedExpression)
Sets the default expression assigned to the annotation method.
|
<C extends CtFormalTypeDeclarer> |
setFormalCtTypeParameters(List<CtTypeParameter> formalTypeParameters)
Sets the type parameters of this generic element.
|
<U extends CtExecutable<T>> |
setParameters(List<CtParameter<?>> parameters)
Sets the parameters.
|
<U extends CtExecutable<T>> |
setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
Sets the thrown types.
|
addFormalCtTypeParameter, addModifier, copyMethod, getExtendedModifiers, getModifiers, getTopDefinitions, getType, getVisibility, hasModifier, isAbstract, isDefaultMethod, isFinal, isOverriding, isPrivate, isProtected, isPublic, isShadow, isStatic, removeFormalCtTypeParameter, removeModifier, setDefaultMethod, setExtendedModifiers, setModifiers, setShadow, setType, setVisibility
addParameter, addThrownType, getDeclaringType, getReference, getSignature, getTopLevelType, removeParameter, removeThrownType
getSimpleName, setSimpleName
addAnnotation, addComment, asIterable, 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, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setFactory, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, unmodifiableList, updateAllParentsBelow
finalize, getClass, notify, notifyAll, wait, wait, wait
copyMethod, getTopDefinitions, isDefaultMethod, isOverriding, setDefaultMethod
addParameter, addThrownType, getReference, getSignature, removeParameter, removeThrownType
getType, setType
addFormalCtTypeParameter, removeFormalCtTypeParameter
getDeclaringType, getTopLevelType
addModifier, getExtendedModifiers, getModifiers, getVisibility, hasModifier, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, removeModifier, setExtendedModifiers, setModifiers, setVisibility
getSimpleName, 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, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, updateAllParentsBelow
getFactory, setFactory
filterChildren, map, map
getOriginalSourceFragment
isShadow, setShadow
public void accept(CtVisitor v)
CtVisitable
accept
in interface CtVisitable
accept
in class CtMethodImpl<T>
public CtExpression<T> getDefaultExpression()
CtAnnotationMethod
getDefaultExpression
in interface CtAnnotationMethod<T>
public <C extends CtAnnotationMethod<T>> C setDefaultExpression(CtExpression<T> assignedExpression)
CtAnnotationMethod
setDefaultExpression
in interface CtAnnotationMethod<T>
public CtBlock<T> getBody()
CtExecutable
getBody
in interface CtBodyHolder
getBody
in interface CtExecutable<T>
getBody
in class CtExecutableImpl<T>
public <T extends CtBodyHolder> T setBody(CtStatement statement)
CtBodyHolder
setBody
in interface CtBodyHolder
setBody
in interface CtAnnotationMethod<T>
setBody
in class CtExecutableImpl<T>
public Set<CtTypeReference<? extends Throwable>> getThrownTypes()
CtExecutable
getThrownTypes
in interface CtExecutable<T>
getThrownTypes
in class CtExecutableImpl<T>
public <U extends CtExecutable<T>> U setThrownTypes(Set<CtTypeReference<? extends Throwable>> thrownTypes)
CtExecutable
setThrownTypes
in interface CtAnnotationMethod<T>
setThrownTypes
in interface CtExecutable<T>
setThrownTypes
in class CtExecutableImpl<T>
public List<CtTypeParameter> getFormalCtTypeParameters()
CtFormalTypeDeclarer
getFormalCtTypeParameters
in interface CtFormalTypeDeclarer
getFormalCtTypeParameters
in class CtMethodImpl<T>
public <C extends CtFormalTypeDeclarer> C setFormalCtTypeParameters(List<CtTypeParameter> formalTypeParameters)
CtFormalTypeDeclarer
setFormalCtTypeParameters
in interface CtAnnotationMethod<T>
setFormalCtTypeParameters
in interface CtFormalTypeDeclarer
setFormalCtTypeParameters
in class CtMethodImpl<T>
public List<CtParameter<?>> getParameters()
CtExecutable
getParameters
in interface CtExecutable<T>
getParameters
in class CtExecutableImpl<T>
public <U extends CtExecutable<T>> U setParameters(List<CtParameter<?>> parameters)
CtExecutable
setParameters
in interface CtAnnotationMethod<T>
setParameters
in interface CtExecutable<T>
setParameters
in class CtExecutableImpl<T>
public CtAnnotationMethod<T> clone()
CtElement
Refactoring.copyType(CtType)
and Refactoring.copyMethod(CtMethod)
instead which does additional work beyond cloning.clone
in interface CtAnnotationMethod<T>
clone
in interface CtElement
clone
in interface CtExecutable<T>
clone
in interface CtMethod<T>
clone
in interface CtNamedElement
clone
in class CtMethodImpl<T>
Copyright © 2007–2019 Inria. All rights reserved.