|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JAnnotatedElement
Base abstraction for JElements which can carry annotations and comments. The only JElements which cannot do this are JAnnotation and JComment.
Method Summary | |
---|---|
JAnnotation[] |
getAllJavadocTags()
Returns JAnnotations representing all of the javadoc tags on this element (including multiple tags with the same name). |
JAnnotation |
getAnnotation(Class jsr175type)
Returns the JAnnotation representing the annotation on this element of the given JSR 175 annotation type, or null if no such annotation exists. |
JAnnotation |
getAnnotation(String named)
Finds an annotation on this element according to the following rules: If the element as a JSR175 annotation of type 'named', returns a JAnnotation for it. If a javadoc tag exists named 'named' returns a JAnnotation for it. |
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. |
Methods inherited from interface com.bea.util.jam.JElement |
---|
accept, getArtifact, getParent, getQualifiedName, getSimpleName, getSourcePosition, isSourceAvailable, toString |
Method Detail |
---|
JAnnotation[] getAnnotations()
Returns the metadata JAnnotations that are associated with this abstraction. Returns an empty array if there are no annotations.
JAnnotation getAnnotation(Class jsr175type)
Returns the JAnnotation representing the annotation on this element of the given JSR 175 annotation type, or null if no such annotation exists.
IllegalArgumentException
- if the jsr175type parameter is null
or not a 175 type.JAnnotation getAnnotation(String named)
Finds an annotation on this element according to the following rules:
JAnnotationValue getAnnotationValue(String valueId)
valueId
- JComment getComment()
Returns the comment associated with this abstraction. Returns null if it has no comment.
JAnnotation[] getAllJavadocTags()
|
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |