Class UTF8Constant


  • public class UTF8Constant
    extends Constant
    Constant of an arbitrary Unicode string.
    Author:
    Franz-Josef Elmer
    • Constructor Summary

      Constructors 
      Constructor Description
      UTF8Constant​(Constant[] pool, java.lang.String string)
      Creates an instance for the specified string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getString()
      Returns the wrapped string.
      java.lang.String toString()
      Returns the constant type and the wrapped string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UTF8Constant

        public UTF8Constant​(Constant[] pool,
                            java.lang.String string)
        Creates an instance for the specified string.
        Parameters:
        pool - Constant pool.
        string - wrapped string.
    • Method Detail

      • getString

        public java.lang.String getString()
        Returns the wrapped string.
      • toString

        public java.lang.String toString()
        Returns the constant type and the wrapped string.
        Overrides:
        toString in class java.lang.Object