Package javassist.bytecode
Class MethodParametersAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.MethodParametersAttribute
MethodParameters_attribute
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionMethodParametersAttribute
(ConstPool cp, String[] names, int[] flags) Constructs an attribute. -
Method Summary
Modifier and TypeMethodDescriptionint
accessFlags
(int i) Returns the value ofaccess_flags
of the i-th element ofparameters
.Makes a copy.int
name
(int i) Returns the value ofname_index
of the i-th element ofparameters
.parameterName
(int i) Returns the name of the i-th element ofparameters
.int
size()
Returnsparameters_count
, which is the number of parameters.Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
Field Details
-
tag
The name of this attribute"MethodParameters"
.- See Also:
-
-
Constructor Details
-
MethodParametersAttribute
Constructs an attribute.- Parameters:
cp
- a constant pool table.names
- an array of parameter names. The i-th element is the name of the i-th parameter.flags
- an array of parameter access flags.
-
-
Method Details
-
size
public int size()Returnsparameters_count
, which is the number of parameters. -
name
public int name(int i) Returns the value ofname_index
of the i-th element ofparameters
.- Parameters:
i
- the position of the parameter.
-
parameterName
Returns the name of the i-th element ofparameters
.- Parameters:
i
- the position of the parameter.
-
accessFlags
public int accessFlags(int i) Returns the value ofaccess_flags
of the i-th element ofparameters
.- Parameters:
i
- the position of the parameter.- See Also:
-
copy
Makes a copy.- Overrides:
copy
in classAttributeInfo
- Parameters:
newCp
- the constant pool table used by the new copy.classnames
- ignored.
-