Class ConstClass

  • All Implemented Interfaces:
    VMConstants

    public class ConstClass
    extends ConstBasic
    Class representing a class reference in the constant pool
    • Constructor Detail

      • ConstClass

        public ConstClass​(ConstUtf8 cname)
        Construct a ConstClass
    • Method Detail

      • tag

        public int tag()
        Return the tag for this constant
        Specified by:
        tag in class ConstBasic
      • className

        public ConstUtf8 className()
        Return the class name
      • asString

        public String asString()
        Return the class name in simple string form
      • toString

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

        public void changeClass​(ConstUtf8 newName)
        Change the class reference (not to be done lightly)