public class MethodParametersAttribute extends AttributeInfo
MethodParameters_attribute.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
tag
The name of this attribute
"MethodParameters". |
| Constructor and Description |
|---|
MethodParametersAttribute(ConstPool cp,
java.lang.String[] names,
int[] flags)
Constructs an attribute.
|
| Modifier and Type | Method and Description |
|---|---|
int |
accessFlags(int i)
Returns the value of
access_flags of the i-th element of parameters. |
AttributeInfo |
copy(ConstPool newCp,
java.util.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, setpublic static final java.lang.String tag
"MethodParameters".public MethodParametersAttribute(ConstPool cp, java.lang.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.AccessFlagpublic AttributeInfo copy(ConstPool newCp, java.util.Map classnames)
copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - ignored.Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.