Uses of Class
javassist.CtConstructor
Packages that use CtConstructor
Package
Description
The Javassist Core API.
This package contains the classes for modifying a method body.
-
Uses of CtConstructor in javassist
Methods in javassist that return CtConstructorModifier and TypeMethodDescriptionstatic CtConstructorCtNewConstructor.copy(CtConstructor c, CtClass declaring, ClassMap map) Creates a copy of a constructor.static CtConstructorCtNewConstructor.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 containingCtConstructorobjects 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 CtConstructorCompiles the given source code and creates a constructor.static CtConstructorCtNewConstructor.make(CtClass[] parameters, CtClass[] exceptions, int howto, CtMethod body, CtMethod.ConstParameter cparam, CtClass declaring) Creates a public constructor.static CtConstructorCreates a public constructor.static CtConstructorCreates a public constructor that only calls a constructor in the super class.CtClass.makeClassInitializer()Makes an empty class initializer (static constructor).static CtConstructorCreates a public constructor that only calls a constructor in the super class.Methods in javassist with parameters of type CtConstructorModifier and TypeMethodDescriptionvoidCtClass.addConstructor(CtConstructor c) Adds a constructor.static CtConstructorCtNewConstructor.copy(CtConstructor c, CtClass declaring, ClassMap map) Creates a copy of a constructor.voidCtClass.removeConstructor(CtConstructor c) Removes a constructor declared in this class.voidCtConstructor.setBody(CtConstructor src, ClassMap map) Copies a constructor body from another constructor.Constructors in javassist with parameters of type CtConstructorModifierConstructorDescriptionCtConstructor(CtConstructor src, CtClass declaring, ClassMap map) Creates a copy of aCtConstructorobject. -
Uses of CtConstructor in javassist.expr
Methods in javassist.expr that return CtConstructorModifier and TypeMethodDescriptionConstructorCall.getConstructor()Returns the called constructor.NewExpr.getConstructor()Returns the constructor called for creating the object.