Class ConstantValueAttribute

  • All Implemented Interfaces:
    Printable

    public class ConstantValueAttribute
    extends Attribute
    ConstantValue attribute.
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The ConstantValue attribute name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConstantValueAttribute

        public ConstantValueAttribute​(ClassInfo classInfo,
                                      int constantValueIndex)
        Constructs an ConstantValueAttribute instance.
        Parameters:
        classInfo - the ClassInfo instance this attribute is part of.
        constantValueIndex - the constant 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.