Class ClassControl


public final class ClassControl extends Support
ClassControl acts as the primary handle for a class within the filter tool. ClassControl instances are typically accessed through various methods on Environment.
  • Field Details

  • Constructor Details

  • Method Details

    • updated

      public boolean updated()
      Return true if the classfile has been updated
    • noteUpdate

      public void noteUpdate()
      Record a modification of the class
    • classFile

      public ClassFile classFile()
      Get the ClassFile data structure for the class
    • persistType

      public int persistType()
      Return the persistence type for this class
    • filterRequired

      public boolean filterRequired()
      Return true if filtering of the class is required. This checks only whether the filtered version of the class is up to date w.r.t. its input class.
    • requireUpdate

      public void requireUpdate()
      Mark the class as requiring update.
    • annotateable

      public boolean annotateable()
      Return true if the class is one which should be a candidate for annotation.
    • action

      public com.sun.jdo.api.persistence.enhancer.impl.ClassAction action()
      Get the ClassAction for this class
    • scan1

      public void scan1()
      Note the class characteristics
    • augment

      public void augment()
      Reparent class if needed
    • annotate

      public void annotate()
      perform necessary annotation actions on the class
    • className

      public String className()
      Return the class name in VM form
    • userClassName

      public String userClassName()
      Return the class name in user ('.' delimited) form
    • userClassFromVMClass

      public static String userClassFromVMClass(String vmName)
      Return the class name in user ('.' delimited) form
    • vmClassFromUserClass

      public static String vmClassFromUserClass(String userName)
      Return the class name in VM ('/' delimited) form
    • pkg

      public String pkg()
      Return the vm package name for this class
    • packageOf

      public static String packageOf(String vmName)
      Return the vm package name for the vm class name
    • sourceName

      public String sourceName()
      Return the name of the class source
    • source

      public ClassFileSource source()
      Return the source of the class
    • write

      public void write(File destFile) throws IOException, FileNotFoundException
      Write the file. If destination directory is non-null, write the file relative to that directory, else write it relative to its original location.
      Throws:
      IOException
      FileNotFoundException