public interface IAnnotationBinding extends IBinding
Annotation
nodes.ANNOTATION, MEMBER_VALUE_PAIR, METHOD, MODULE, PACKAGE, TYPE, VARIABLE
Modifier and Type | Method and Description |
---|---|
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.
|
ITypeBinding |
getAnnotationType()
Returns the type of the annotation.
|
IMemberValuePairBinding[] |
getDeclaredMemberValuePairs()
Returns the list of declared member value pairs for this annotation.
|
String |
getName()
Returns the name of the annotation type.
|
equals, getAnnotations, getJavaElement, getKey, getKind, getModifiers, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
IMemberValuePairBinding[] getAllMemberValuePairs()
ITypeBinding getAnnotationType()
true
to ITypeBinding.isAnnotation()
.IMemberValuePairBinding[] getDeclaredMemberValuePairs()
MarkerAnnotation
, a one element
list for a SingleMemberAnnotation
, and one entry for each
of the explicitly listed values in a NormalAnnotation
.
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.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.