Uses of Class
javassist.CtConstructor
Package
Description
The Javassist Core API.
This package contains the classes for modifying a method body.
-
Uses of CtConstructor in javassist
Modifier and TypeMethodDescriptionstatic CtConstructor
CtNewConstructor.copy
(CtConstructor c, CtClass declaring, ClassMap map) Creates a copy of a constructor.static CtConstructor
CtNewConstructor.defaultConstructor
(CtClass declaring) Creates a default (public) constructor.CtClass.getClassInitializer()
Gets the class initializer (static constructor) declared in the class.CtClass.getConstructor
(String desc) Returns the constructor with the given signature, which is represented by a character string called method descriptor.CtClass.getConstructors()
Returns an array containingCtConstructor
objects representing all the non-private constructors of the class.CtClass.getDeclaredConstructor
(CtClass[] params) Returns a constructor receiving the specified parameters.CtClass.getDeclaredConstructors()
Gets all the constructors declared in the class.static CtConstructor
Compiles the given source code and creates a constructor.static CtConstructor
CtNewConstructor.make
(CtClass[] parameters, CtClass[] exceptions, int howto, CtMethod body, CtMethod.ConstParameter cparam, CtClass declaring) Creates a public constructor.static CtConstructor
Creates a public constructor.static CtConstructor
Creates a public constructor that only calls a constructor in the super class.CtClass.makeClassInitializer()
Makes an empty class initializer (static constructor).static CtConstructor
Creates a public constructor that only calls a constructor in the super class.Modifier and TypeMethodDescriptionvoid
CtClass.addConstructor
(CtConstructor c) Adds a constructor.static CtConstructor
CtNewConstructor.copy
(CtConstructor c, CtClass declaring, ClassMap map) Creates a copy of a constructor.void
CtClass.removeConstructor
(CtConstructor c) Removes a constructor declared in this class.void
CtConstructor.setBody
(CtConstructor src, ClassMap map) Copies a constructor body from another constructor.ModifierConstructorDescriptionCtConstructor
(CtConstructor src, CtClass declaring, ClassMap map) Creates a copy of aCtConstructor
object. -
Uses of CtConstructor in javassist.expr
Modifier and TypeMethodDescriptionConstructorCall.getConstructor()
Returns the called constructor.NewExpr.getConstructor()
Returns the constructor called for creating the object.