public static class CtMethod.ConstParameter
extends java.lang.Object
CtNewMethod.wrapped()
.Constructor and Description |
---|
ConstParameter() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
compile(Bytecode code) |
(package private) java.lang.String |
constDescriptor()
Returns the descriptor for constructors.
|
(package private) static java.lang.String |
defaultConstDescriptor()
Returns the default descriptor for constructors.
|
(package private) static java.lang.String |
defaultDescriptor() |
(package private) java.lang.String |
descriptor() |
static CtMethod.ConstParameter |
integer(int i)
Makes an integer constant.
|
static CtMethod.ConstParameter |
integer(long i)
Makes a long integer constant.
|
static CtMethod.ConstParameter |
string(java.lang.String s)
Makes an
String constant. |
public static CtMethod.ConstParameter integer(int i)
i
- the constant value.public static CtMethod.ConstParameter integer(long i)
i
- the constant value.public static CtMethod.ConstParameter string(java.lang.String s)
String
constant.s
- the constant value.int compile(Bytecode code) throws CannotCompileException
CannotCompileException
java.lang.String descriptor()
static java.lang.String defaultDescriptor()
CtNewWrappedMethod
java.lang.String constDescriptor()
CtNewWrappedConstructor
static java.lang.String defaultConstDescriptor()