Interface IMemberValuePairBinding

  • All Superinterfaces:

    public interface IMemberValuePairBinding
    extends IBinding
    Represents a resolved instance of an annotation's member value pair. Resolved annotation are computed along with other bindings; these objects correspond to MemberValuePair nodes.
    This interface is not intended to be implemented by clients.
    • Method Detail

      • getName

        String getName()
        Returns the name of the annotation type member.
        Specified by:
        getName in interface IBinding
        the name of the member
      • getMethodBinding

        IMethodBinding getMethodBinding()
        Returns the method binding corresponding to the named annotation type member.
        the method binding for the annotation type member
      • getValue

        Object getValue()
        Returns the resolved value. Resolved values are represented as follows:
        • Primitive type - the equivalent boxed object
        • java.lang.Class - the ITypeBinding for the class object
        • java.lang.String - the string value itself
        • enum type - the IVariableBinding for the enum constant
        • annotation type - an IAnnotationBinding
        • array type - an Object[] whose elements are as per above (the language only allows single dimensional arrays in annotations)
        the resolved value, or null if none exists
      • isDefault

        boolean isDefault()
        true iff this member value pair's value is the default value. Returns false otherwise.