public class ElementValuePair
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ElementValuePair.UnresolvedEnumConstant
We want to avoid eagerly resolving of all enums that are used in annotations.
|
| Modifier and Type | Field and Description |
|---|---|
MethodBinding |
binding |
java.lang.Object |
value |
| Constructor and Description |
|---|
ElementValuePair(char[] name,
Expression expression,
MethodBinding binding) |
ElementValuePair(char[] name,
java.lang.Object value,
MethodBinding binding) |
| Modifier and Type | Method and Description |
|---|---|
MethodBinding |
getMethodBinding() |
char[] |
getName() |
java.lang.Object |
getValue()
Return
TypeBinding for member value of type Class
Return Constant for member of primitive type or String
Return FieldBinding for enum constant
Return AnnotationBinding for annotation instance
Return Object[] for member value of array type. |
static java.lang.Object |
getValue(Expression expression) |
java.lang.String |
toString() |
public java.lang.Object value
public MethodBinding binding
public ElementValuePair(char[] name,
Expression expression,
MethodBinding binding)
public ElementValuePair(char[] name,
java.lang.Object value,
MethodBinding binding)
public static java.lang.Object getValue(Expression expression)
public char[] getName()
public MethodBinding getMethodBinding()
public java.lang.Object getValue()
TypeBinding for member value of type Class
Return Constant for member of primitive type or String
Return FieldBinding for enum constant
Return AnnotationBinding for annotation instance
Return Object[] for member value of array type.public java.lang.String toString()
toString in class java.lang.Object