Class ElementValue

    • Field Detail

      • 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 .
    • Constructor Detail

      • ElementValue

        protected ElementValue()
        Creates an uninitialized ElementValue.
      • ElementValue

        protected ElementValue​(int u2elementNameIndex)
        Creates an initialized ElementValue.
    • Method Detail

      • 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.