org.eclipse.jdt.internal.compiler.lookup
Class ElementValuePair
java.lang.Object
org.eclipse.jdt.internal.compiler.lookup.ElementValuePair
public class ElementValuePair
- extends Object
value
public Object value
binding
public MethodBinding binding
ElementValuePair
public ElementValuePair(char[] name,
Expression expression,
MethodBinding binding)
ElementValuePair
public ElementValuePair(char[] name,
Object value,
MethodBinding binding)
getValue
public static Object getValue(Expression expression)
getName
public char[] getName()
- Returns:
- the name of the element value pair.
getMethodBinding
public MethodBinding getMethodBinding()
- Returns:
- the method binding that defined this member value pair or null if no such binding exists.
getValue
public 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.
- Returns:
- the value of this member value pair or null if the value is missing or is not a compile-time constant
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.