classUtils.javassist
Class CompileTimeNewClass

java.lang.Object
  extended by classUtils.javassist.CompileTimeClass
      extended by classUtils.javassist.CompileTimeClassType
          extended by classUtils.javassist.CompileTimeNewClass

public class CompileTimeNewClass
extends CompileTimeClassType


Field Summary
 
Fields inherited from class classUtils.javassist.CompileTimeClass
booleanType, byteType, charType, doubleType, floatType, intType, longType, shortType, version, voidType
 
Constructor Summary
CompileTimeNewClass(java.lang.String name, ClassPool cp, boolean isInterface, CompileTimeClass superclass)
           
 
Method Summary
 void addConstructor(CtConstructor c)
          Adds a constructor.
 void inheritAllConstructors()
          Adds constructors inhrited from the super class.
 
Methods inherited from class classUtils.javassist.CompileTimeClassType
addField, addField, addInterface, addMethod, defrost, getAttribute, getClassFile2, getClassInitializer, getClassPool, getConstructor, getConstructors, getDeclaredBehaviors, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethod, getDeclaredMethods, getField, getFields, getInterfaces, getMethod, getMethods, getModifiers, getSuperclass, instrument, instrument, isFrozen, isInterface, isModified, makeClassInitializer, replaceClassName, replaceClassName, setAttribute, setInterfaces, setModifiers, setName, setSuperclass, subclassOf, subtypeOf
 
Methods inherited from class classUtils.javassist.CompileTimeClass
addField, getClassFile, getComponentType, getDeclaredConstructor, getName, getPackageName, getRefClasses, getSimpleName, isArray, isPrimitive, toBytecode, toClass, writeFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompileTimeNewClass

public CompileTimeNewClass(java.lang.String name,
                           ClassPool cp,
                           boolean isInterface,
                           CompileTimeClass superclass)
Method Detail

addConstructor

public void addConstructor(CtConstructor c)
                    throws CannotCompileException
Description copied from class: CompileTimeClass
Adds a constructor.

Overrides:
addConstructor in class CompileTimeClassType
Throws:
CannotCompileException

inheritAllConstructors

public void inheritAllConstructors()
                            throws CannotCompileException,
                                   NotFoundException
Adds constructors inhrited from the super class.

After this method is called, the class inherits all the constructors from the super class. The added constructor calls the super's constructor with the same signature.

Throws:
CannotCompileException
NotFoundException