Package | Description |
---|---|
javassist |
The Javassist Core API.
|
javassist.compiler | |
javassist.expr |
This package contains the classes for modifying a method body.
|
Modifier and Type | Class and Description |
---|---|
class |
CtConstructor
An instance of CtConstructor represents a constructor.
|
class |
CtMethod
An instance of
CtMethod represents a method. |
Modifier and Type | Method and Description |
---|---|
CtBehavior[] |
CtClass.getDeclaredBehaviors()
Gets all the constructors and methods declared in the class.
|
Modifier and Type | Method and Description |
---|---|
Bytecode |
Javac.compileBody(CtBehavior method,
String src)
Compiles a method (or constructor) body.
|
Modifier and Type | Method and Description |
---|---|
CtBehavior |
MethodCall.where()
Returns the method or constructor containing the method-call
expression represented by this object.
|
CtBehavior |
NewExpr.where()
Returns the method or constructor containing the new
expression represented by this object.
|
CtBehavior |
Instanceof.where()
Returns the method or constructor containing the instanceof
expression represented by this object.
|
CtBehavior |
FieldAccess.where()
Returns the method or constructor containing the field-access
expression represented by this object.
|
CtBehavior |
NewArray.where()
Returns the method or constructor containing the array creation
represented by this object.
|
CtBehavior |
Handler.where()
Returns the method or constructor containing the catch clause.
|
CtBehavior |
Expr.where()
Returns the constructor or method containing the expression.
|
CtBehavior |
Cast.where()
Returns the method or constructor containing the type cast
expression represented by this object.
|
Copyright © 2024. All rights reserved.