Class ShortAnnotationElement

    • Field Detail

      • valueIndex

        protected final int valueIndex
    • Constructor Detail

      • ShortAnnotationElement

        public ShortAnnotationElement​(ClassInfo classInfo,
                                      int valueIndex)
        Constructs a new ShortAnnotationElement} instance.
        Parameters:
        classInfo - the ClassInfo instance this annotation attribute is part of.
        valueIndex - the annotation element value index.
    • Method Detail

      • print

        public void print​(ClassPrinter out,
                          ClassContext context)
                   throws java.io.IOException
        Description copied from interface: Printable
        Prints this instance.
        Parameters:
        out - the ClassPrinter instance to print to.
        context - the context of this print invocation.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object