Package javassist
Class CtMethod.ConstParameter
java.lang.Object
javassist.CtMethod.ConstParameter
- Direct Known Subclasses:
CtMethod.IntConstParameter
,CtMethod.LongConstParameter
,CtMethod.StringConstParameter
- Enclosing class:
CtMethod
Instances of this class represent a constant parameter.
They are used to specify the parameter given to the methods
created by
CtNewMethod.wrapped()
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
(package private) String
Returns the descriptor for constructors.(package private) static String
Returns the default descriptor for constructors.(package private) static String
(package private) String
static CtMethod.ConstParameter
integer
(int i) Makes an integer constant.static CtMethod.ConstParameter
integer
(long i) Makes a long integer constant.static CtMethod.ConstParameter
Makes anString
constant.
-
Constructor Details
-
ConstParameter
ConstParameter()
-
-
Method Details
-
integer
Makes an integer constant.- Parameters:
i
- the constant value.
-
integer
Makes a long integer constant.- Parameters:
i
- the constant value.
-
string
Makes anString
constant.- Parameters:
s
- the constant value.
-
compile
- Returns:
- the size of the stack consumption.
- Throws:
CannotCompileException
-
descriptor
String descriptor() -
defaultDescriptor
- See Also:
-
constDescriptor
String constDescriptor()Returns the descriptor for constructors.- See Also:
-
defaultConstDescriptor
Returns the default descriptor for constructors.
-