org.eclipse.jdt.internal.compiler.lookup
类 ElementValuePair

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.lookup.ElementValuePair

public class ElementValuePair
extends Object


字段摘要
 MethodBinding binding
           
 Object value
           
 
构造方法摘要
ElementValuePair(char[] name, Expression expression, MethodBinding binding)
           
ElementValuePair(char[] name, Object value, MethodBinding binding)
           
 
方法摘要
 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()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

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()
返回:
the name of the element value pair.

getMethodBinding

public MethodBinding getMethodBinding()
返回:
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.

返回:
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()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.