|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectclassUtils.javassist.CompileTimeClass
classUtils.javassist.CompileTimeClassType
classUtils.javassist.CompileTimeNewClass
public class CompileTimeNewClass
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.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 |
---|
public CompileTimeNewClass(java.lang.String name, ClassPool cp, boolean isInterface, CompileTimeClass superclass)
Method Detail |
---|
public void addConstructor(CtConstructor c) throws CannotCompileException
CompileTimeClass
addConstructor
in class CompileTimeClassType
CannotCompileException
public void inheritAllConstructors() throws CannotCompileException, NotFoundException
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.
CannotCompileException
NotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |