Class ClassGen

All Implemented Interfaces:
Cloneable

public class ClassGen extends AccessFlags implements Cloneable
Template class for building up a java class. May be initialized with an existing Java class (file).
See Also:
  • Constructor Details

    • ClassGen

      public ClassGen(JavaClass clazz)
      Constructs a new instance from an existing class.
      Parameters:
      clazz - JavaClass object (e.g. read from file)
    • ClassGen

      public ClassGen(String className, String superClassName, String fileName, int accessFlags, String[] interfaces)
      Convenience constructor to set up some important values initially.
      Parameters:
      className - fully qualified class name
      superClassName - fully qualified superclass name
      fileName - source file name
      accessFlags - access qualifiers
      interfaces - implemented interfaces
    • ClassGen

      public ClassGen(String className, String superClassName, String fileName, int accessFlags, String[] interfaces, ConstantPoolGen cp)
      Convenience constructor to set up some important values initially.
      Parameters:
      className - fully qualified class name
      superClassName - fully qualified superclass name
      fileName - source file name
      accessFlags - access qualifiers
      interfaces - implemented interfaces
      cp - constant pool to use
  • Method Details