Schnittstelle IAnnotationBinding
- Alle Superschnittstellen:
IBinding
Represents a resolved annotation. Resolved annotations are computed along with other
bindings; they correspond to
Annotation
nodes.- Seit:
- 3.2
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.dom.IBinding
ANNOTATION, MEMBER_VALUE_PAIR, METHOD, MODULE, PACKAGE, TYPE, VARIABLE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the complete list of member value pairs for this annotation, including ones explicitly listed in the annotation as well as entries for annotation type members with default values that are implied.Returns the type of the annotation.Returns the list of declared member value pairs for this annotation.getName()
Returns the name of the annotation type.Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.dom.IBinding
equals, getAnnotations, getJavaElement, getKey, getKind, getModifiers, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
-
Methodendetails
-
getAllMemberValuePairs
IMemberValuePairBinding[] getAllMemberValuePairs()Returns the complete list of member value pairs for this annotation, including ones explicitly listed in the annotation as well as entries for annotation type members with default values that are implied.- Gibt zurück:
- a possibly empty list of resolved member value pairs
-
getAnnotationType
ITypeBinding getAnnotationType()Returns the type of the annotation. The resulting type binding will always returntrue
toITypeBinding.isAnnotation()
.- Gibt zurück:
- the type of the annotation
-
getDeclaredMemberValuePairs
IMemberValuePairBinding[] getDeclaredMemberValuePairs()Returns the list of declared member value pairs for this annotation. Returns an empty list for aMarkerAnnotation
, a one element list for aSingleMemberAnnotation
, and one entry for each of the explicitly listed values in aNormalAnnotation
.Note that the list only includes entries for annotation type members that are explicitly mentioned in the annotation. The list does not include any annotation type members with default values that are merely implied. Use
getAllMemberValuePairs()
to get those as well.- Gibt zurück:
- a possibly empty list of resolved member value pairs
-
getName
String getName()Returns the name of the annotation type.
-