Class ElementValuePair
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ElementValuePair
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
We want to avoid eagerly resolving of all enums that are used in annotations. -
Field Summary
-
Constructor Summary
ConstructorDescriptionElementValuePair(char[] name, Object value, MethodBinding binding)
ElementValuePair(char[] name, Expression expression, MethodBinding binding)
-
Method Summary
Modifier and TypeMethodDescriptionchar[]
getName()
getValue()
ReturnTypeBinding
for member value of typeClass
ReturnConstant
for member of primitive type or String ReturnFieldBinding
for enum constant ReturnAnnotationBinding
for annotation instance ReturnObject[]
for member value of array type.static Object
getValue(Expression expression)
toString()
-
Field Details
-
value
-
binding
-
-
Constructor Details
-
ElementValuePair
-
ElementValuePair
-
-
Method Details
-
getValue
-
getName
public char[] getName()- Returns:
- the name of the element value pair.
-
getMethodBinding
- Returns:
- the method binding that defined this member value pair or null if no such binding exists.
-
getValue
ReturnTypeBinding
for member value of typeClass
ReturnConstant
for member of primitive type or String ReturnFieldBinding
for enum constant ReturnAnnotationBinding
for annotation instance ReturnObject[]
for member value of array type.- Returns:
- the value of this member value pair or null if the value is missing or is not a compile-time constant
-
toString
-