类 ElementValue

    • 字段详细资料

      • TAG_STRING_CONSTANT

        public static final char TAG_STRING_CONSTANT
        另请参阅:
        常量字段值
      • TAG_ENUM_CONSTANT

        public static final char TAG_ENUM_CONSTANT
        另请参阅:
        常量字段值
      • TAG_CLASS

        public static final char TAG_CLASS
        另请参阅:
        常量字段值
      • TAG_ANNOTATION

        public static final char TAG_ANNOTATION
        另请参阅:
        常量字段值
      • TAG_ARRAY

        public static final char TAG_ARRAY
        另请参阅:
        常量字段值
      • u2elementNameIndex

        public int u2elementNameIndex
        An extra field for the optional element name. It is used in element value pairs of annotations. Otherwise, it is 0.
      • referencedClass

        public Clazz referencedClass
        An extra field pointing to the referenced Clazz object, if applicable. This field is typically filled out by the ClassReferenceInitializer .
      • referencedMethod

        public Method referencedMethod
        An extra field pointing to the referenced Method object, if applicable. This field is typically filled out by the ClassReferenceInitializer .
    • 构造器详细资料

      • ElementValue

        protected ElementValue()
        Creates an uninitialized ElementValue.
      • ElementValue

        protected ElementValue​(int u2elementNameIndex)
        Creates an initialized ElementValue.
    • 方法详细资料

      • getMethodName

        public java.lang.String getMethodName​(Clazz clazz)
        Returns the element name.
      • getTag

        public abstract char getTag()
        Returns the tag of this element value.
      • referencedMethodAccept

        public void referencedMethodAccept​(MemberVisitor memberVisitor)
        Applies the given visitor to the referenced method.