Schnittstelle IMemberValuePairBinding
- Alle Superschnittstellen:
IBinding
Represents a resolved instance of an annotation's member value pair.
Resolved annotation are computed along with other bindings; these objects
correspond to
MemberValuePair 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
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.dom.IBinding
equals, getAnnotations, getJavaElement, getKey, getKind, getModifiers, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
-
Methodendetails
-
getName
String getName()Returns the name of the annotation type member. -
getMethodBinding
IMethodBinding getMethodBinding()Returns the method binding corresponding to the named annotation type member.- Gibt zurück:
- the method binding for the annotation type member
-
getValue
Object getValue()Returns the resolved value. Resolved values are represented as follows:- Primitive type - the equivalent boxed object
- java.lang.Class - the
ITypeBindingfor the class object - java.lang.String - the string value itself
- enum type - the
IVariableBindingfor the enum constant - annotation type - an
IAnnotationBinding - array type - an
Object[]whose elements are as per above (the language only allows single dimensional arrays in annotations)
- Gibt zurück:
- the resolved value, or
nullif none exists
-
isDefault
boolean isDefault()- Gibt zurück:
trueiff this member value pair's value is the default value. Returnsfalseotherwise.
-