public class ElementValuePair extends 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 |
Object |
value |
| Constructor and Description |
|---|
ElementValuePair(char[] name,
Expression expression,
MethodBinding binding) |
ElementValuePair(char[] name,
Object value,
MethodBinding binding) |
| Modifier and Type | Method and Description |
|---|---|
MethodBinding |
getMethodBinding() |
char[] |
getName() |
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 Object |
getValue(Expression expression) |
String |
toString() |
public Object value
public MethodBinding binding
public ElementValuePair(char[] name,
Expression expression,
MethodBinding binding)
public ElementValuePair(char[] name,
Object value,
MethodBinding binding)
public static Object getValue(Expression expression)
public char[] getName()
public MethodBinding getMethodBinding()
public 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.Copyright © 2015. All rights reserved.