Class ConstNameAndType

  • All Implemented Interfaces:
    VMConstants

    public class ConstNameAndType
    extends ConstBasic
    Class representing a name and an associated type in the constant pool of a class file
    • Method Detail

      • tag

        public int tag()
        The tag of this constant entry
        Specified by:
        tag in class ConstBasic
      • name

        public ConstUtf8 name()
        Return the name
      • signature

        public ConstUtf8 signature()
        Return the type signature associated with the name
      • changeSignature

        public void changeSignature​(ConstUtf8 newSig)
        Modify the signature
      • toString

        public String toString()
        A printable representation
        Overrides:
        toString in class Object