public class MethodParametersAttribute extends AttributeInfo
MethodParameters_attribute
.Modifier and Type | Field | Description |
---|---|---|
static String |
tag |
The name of this attribute
"MethodParameters" . |
constPool
Constructor | Description |
---|---|
MethodParametersAttribute(ConstPool cp,
String[] names,
int[] flags) |
Constructs an attribute.
|
Modifier and Type | Method | Description |
---|---|---|
int |
accessFlags(int i) |
Returns the value of
access_flags of the i-th element of parameters . |
AttributeInfo |
copy(ConstPool newCp,
Map classnames) |
Makes a copy.
|
int |
name(int i) |
Returns the value of
name_index of the i-th element of parameters . |
int |
size() |
Returns
parameters_count , which is the number of
parameters. |
get, getConstPool, getName, length, set
public static final String tag
"MethodParameters"
.public MethodParametersAttribute(ConstPool cp, String[] names, int[] flags)
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.public int size()
parameters_count
, which is the number of
parameters.public int name(int i)
name_index
of the i-th element of parameters
.i
- the position of the parameter.public int accessFlags(int i)
access_flags
of the i-th element of parameters
.i
- the position of the parameter.AccessFlag
public AttributeInfo copy(ConstPool newCp, Map classnames)
copy
in class AttributeInfo
newCp
- the constant pool table used by the new copy.classnames
- ignored.Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.