public abstract class AnnotatedElementImpl extends ElementImpl implements MAnnotatedElement
NO_ANNOTATION, NO_CLASS, NO_COMMENT, NO_CONSTRUCTOR, NO_FIELD, NO_METHOD, NO_NODE, NO_PACKAGE, NO_PARAMETER, NO_PROPERTY| Modifier and Type | Method and Description |
|---|---|
MAnnotation |
addAnnotationForProxy(Class proxyClass,
AnnotationProxy proxy)
Deprecated.
this is a back door for xbeans. do not use, will
be removed soon.
|
MAnnotation |
addLiteralAnnotation(String annName) |
MComment |
createComment() |
MAnnotation |
findOrCreateAnnotation(String annotationName)
Returns the annotation having the given name, creating it if it doesn't
exist.
|
JAnnotation[] |
getAllJavadocTags()
Deprecated.
|
JAnnotation |
getAnnotation(Class proxyClass)
Returns the JAnnotation which is being proxied by the given subclass
of TypedAnnotationProxyBase, or null if no such annotation exists.
|
JAnnotation |
getAnnotation(String named)
Returns the annotation that represents the named 175 annotation
or javadoc tag on this elements.
|
Object |
getAnnotationProxy(Class proxyClass) |
JAnnotation[] |
getAnnotations()
Returns the metadata JAnnotations that are associated with
this abstraction.
|
JAnnotationValue |
getAnnotationValue(String valueId)
Shortcut method which returns a given annotation value.
|
JComment |
getComment()
Returns the comment associated with this abstraction.
|
AnnotationProxy |
getEditableProxy(Class proxyClass) |
MAnnotation |
getMutableAnnotation(String named) |
MAnnotation[] |
getMutableAnnotations() |
MComment |
getMutableComment() |
void |
removeAnnotation(MAnnotation ann) |
void |
removeComment() |
compareTo, createSourcePosition, defaultName, equals, getArtifact, getClassLoader, getContext, getMutableSourcePosition, getParent, getSimpleName, getSourcePosition, hashCode, removeSourcePosition, setArtifact, setSimpleName, toStringaccept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleNameaccept, getArtifact, getParent, getQualifiedName, getSimpleName, getSourcePosition, toStringpublic JAnnotation[] getAnnotations()
JAnnotatedElementReturns the metadata JAnnotations that are associated with this abstraction. Returns an empty array if there are no annotations.
getAnnotations in interface JAnnotatedElementpublic JAnnotation getAnnotation(Class proxyClass)
JAnnotatedElementReturns the JAnnotation which is being proxied by the given subclass
of TypedAnnotationProxyBase, or null if no such annotation exists. If it
does exist, the getProxy() method on the returned
object is guaranteed to return be an instance of the proxyClass.
getAnnotation in interface JAnnotatedElementpublic JAnnotation getAnnotation(String named)
JAnnotatedElementReturns the annotation that represents the named 175 annotation or javadoc tag on this elements.
getAnnotation in interface JAnnotatedElementpublic JAnnotationValue getAnnotationValue(String valueId)
JAnnotatedElementgetAnnotationValue in interface JAnnotatedElementpublic Object getAnnotationProxy(Class proxyClass)
getAnnotationProxy in interface JAnnotatedElementpublic JComment getComment()
JAnnotatedElementReturns the comment associated with this abstraction. Returns null if it has no comment.
getComment in interface JAnnotatedElementpublic JAnnotation[] getAllJavadocTags()
getAllJavadocTags in interface JAnnotatedElementpublic AnnotationProxy getEditableProxy(Class proxyClass)
public void removeAnnotation(MAnnotation ann)
public MAnnotation[] getMutableAnnotations()
getMutableAnnotations in interface MAnnotatedElementpublic MAnnotation getMutableAnnotation(String named)
getMutableAnnotation in interface MAnnotatedElementpublic MAnnotation findOrCreateAnnotation(String annotationName)
MAnnotatedElementfindOrCreateAnnotation in interface MAnnotatedElementpublic MAnnotation addLiteralAnnotation(String annName)
addLiteralAnnotation in interface MAnnotatedElementpublic MComment getMutableComment()
getMutableComment in interface MAnnotatedElementpublic MComment createComment()
createComment in interface MAnnotatedElementpublic void removeComment()
removeComment in interface MAnnotatedElementpublic MAnnotation addAnnotationForProxy(Class proxyClass, AnnotationProxy proxy)
Copyright © 2010 - 2020 Adobe. All Rights Reserved