java.lang.Object
com.sun.jdo.api.persistence.enhancer.classfile.ConstBasic
com.sun.jdo.api.persistence.enhancer.classfile.ConstClass
All Implemented Interfaces:
VMConstants

public class ConstClass extends ConstBasic
Class representing a class reference in the constant pool
  • Field Details

  • Constructor Details

    • ConstClass

      public ConstClass(ConstUtf8 cname)
      Construct a ConstClass
  • Method Details

    • 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)