|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CtConstructor | |
---|---|
classUtils.javassist | |
classUtils.javassist.expr | This package contains the classes for modifying a method body. |
Uses of CtConstructor in classUtils.javassist |
---|
Methods in classUtils.javassist that return CtConstructor | |
---|---|
static CtConstructor |
CtNewConstructor.copy(CtConstructor c,
CompileTimeClass declaring,
ClassMap map)
Creats a copy of a constructor. |
static CtConstructor |
CtNewConstructor.defaultConstructor(CompileTimeClass declaring)
Creates a default (public) constructor. |
CtConstructor |
CompileTimeClass.getClassInitializer()
Gets the class initializer (static constructor) declared in the class. |
CtConstructor |
CompileTimeClassType.getClassInitializer()
|
CtConstructor |
CompileTimeClass.getConstructor(java.lang.String desc)
Returns the constructor with the given signature, which is represented by a character string called method descriptor. |
CtConstructor |
CompileTimeClassType.getConstructor(java.lang.String desc)
|
CtConstructor[] |
CompileTimeClass.getConstructors()
Returns an array containing CtConstructor objects
representing all the public constructors of the class. |
CtConstructor[] |
CompileTimeClassType.getConstructors()
|
CtConstructor |
CompileTimeClass.getDeclaredConstructor(CompileTimeClass[] params)
Returns a constructor receiving the specified parameters. |
CtConstructor[] |
CompileTimeClass.getDeclaredConstructors()
Gets all the constructors declared in the class. |
CtConstructor[] |
CompileTimeClassType.getDeclaredConstructors()
|
static CtConstructor |
CtNewConstructor.make(CompileTimeClass[] parameters,
CompileTimeClass[] exceptions,
CompileTimeClass declaring)
Creates a public constructor that only calls a constructor in the super class. |
static CtConstructor |
CtNewConstructor.make(CompileTimeClass[] parameters,
CompileTimeClass[] exceptions,
int howto,
CtMethod body,
CtMethod.ConstParameter cparam,
CompileTimeClass declaring)
Creates a public constructor. |
static CtConstructor |
CtNewConstructor.make(CompileTimeClass[] parameters,
CompileTimeClass[] exceptions,
java.lang.String body,
CompileTimeClass declaring)
Creates a public constructor. |
static CtConstructor |
CtNewConstructor.make(java.lang.String src,
CompileTimeClass declaring)
Compiles the given source code and creates a constructor. |
CtConstructor |
CompileTimeClass.makeClassInitializer()
Makes a class initializer (static constructor). |
CtConstructor |
CompileTimeClassType.makeClassInitializer()
|
static CtConstructor |
CtNewConstructor.skeleton(CompileTimeClass[] parameters,
CompileTimeClass[] exceptions,
CompileTimeClass declaring)
Creates a public constructor that only calls a constructor in the super class. |
Methods in classUtils.javassist with parameters of type CtConstructor | |
---|---|
void |
CompileTimeClass.addConstructor(CtConstructor c)
Adds a constructor. |
void |
CompileTimeClassType.addConstructor(CtConstructor c)
|
void |
CompileTimeNewClass.addConstructor(CtConstructor c)
|
static CtConstructor |
CtNewConstructor.copy(CtConstructor c,
CompileTimeClass declaring,
ClassMap map)
Creats a copy of a constructor. |
void |
CtConstructor.setBody(CtConstructor src,
ClassMap map)
Copies a constructor body from another constructor. |
Constructors in classUtils.javassist with parameters of type CtConstructor | |
---|---|
CtConstructor(CtConstructor src,
CompileTimeClass declaring,
ClassMap map)
Creates a copy of a CtConstructor object. |
Uses of CtConstructor in classUtils.javassist.expr |
---|
Methods in classUtils.javassist.expr that return CtConstructor | |
---|---|
CtConstructor |
NewExpr.getConstructor()
Returns the constructor called for creating the object. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |