Class Utf8Constant

  • All Implemented Interfaces:
    Printable

    public class Utf8Constant
    extends Constant
    Utf8 constant.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte TAG
      Utf8 constant tag.
    • Constructor Detail

      • Utf8Constant

        public Utf8Constant​(ClassInfo classInfo,
                            java.lang.String value)
        Constructs a new Utf8Constant instance.
        Parameters:
        classInfo - the ClassInfo instance this constant is part of.
        value - the constant value.
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Gets this constant's value.
        Returns:
        this constant's value.
      • 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