| Modifier and Type | Field and Description |
|---|---|
| protected boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | extendToString(StringBuilder buffer)
Overrides javassist. Implemented in subclasses to add to the |
| public void | |
| private boolean | |
| public void | toBytecode(DataOutputStream
the output stream that a class file is written to. out)Overrides javassist. Converts this class to a class file. |
| hasConstructor | back to summary |
|---|---|
| protected boolean hasConstructor | |
| CtNewClass | back to summary |
|---|---|
| pack-priv CtNewClass(String name, ClassPool cp, boolean isInterface, CtClass superclass) | |
| addConstructor | back to summary |
|---|---|
| public void addConstructor(CtConstructor c) throws CannotCompileException Overrides javassist. Doc from javassist. Adds a constructor. To add a class initializer (static constructor),
call
| |
| extendToString | back to summary |
|---|---|
| protected void extendToString(StringBuilder buffer) Overrides javassist. Doc from javassist. Implemented in subclasses to add to the
| |
| inheritAllConstructors | back to summary |
|---|---|
| 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. | |
| isInheritable | back to summary |
|---|---|
| private boolean isInheritable(int mod, CtClass superclazz) | |
| toBytecode | back to summary |
|---|---|
| public void toBytecode(DataOutputStream out) throws CannotCompileException, IOException Overrides javassist. Doc from javassist. Converts this class to a class file. Once this method is called, further modifications are not possible any more. This method dose not close the output stream in the end.
| |