Package | Description |
---|---|
javassist |
The Javassist Core API.
|
Modifier and Type | Method and Description |
---|---|
static CtMethod.ConstParameter |
CtMethod.ConstParameter.integer(int i)
Makes an integer constant.
|
static CtMethod.ConstParameter |
CtMethod.ConstParameter.integer(long i)
Makes a long integer constant.
|
static CtMethod.ConstParameter |
CtMethod.ConstParameter.string(java.lang.String s)
Makes an
String constant. |
Modifier and Type | Method and Description |
---|---|
static CtConstructor |
CtNewConstructor.make(CtClass[] parameters,
CtClass[] exceptions,
int howto,
CtMethod body,
CtMethod.ConstParameter cparam,
CtClass declaring)
Creates a public constructor.
|
void |
CtMethod.setWrappedBody(CtMethod mbody,
CtMethod.ConstParameter constParam)
Replace a method body with a new method body wrapping the
given method.
|
static CtMethod |
CtNewMethod.wrapped(CtClass returnType,
java.lang.String mname,
CtClass[] parameterTypes,
CtClass[] exceptionTypes,
CtMethod body,
CtMethod.ConstParameter constParam,
CtClass declaring)
Creates a wrapped method.
|
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.