Package javassist.bytecode
Class MethodParametersAttribute
- java.lang.Object
-
- javassist.bytecode.AttributeInfo
-
- javassist.bytecode.MethodParametersAttribute
-
public class MethodParametersAttribute extends AttributeInfo
MethodParameters_attribute.
-
-
Constructor Summary
Constructors Constructor Description MethodParametersAttribute(ConstPool cp, String[] names, int[] flags)Constructs an attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccessFlags(int i)Returns the value ofaccess_flagsof the i-th element ofparameters.AttributeInfocopy(ConstPool newCp, Map<String,String> classnames)Makes a copy.intname(int i)Returns the value ofname_indexof the i-th element ofparameters.StringparameterName(int i)Returns the name of the i-th element ofparameters.intsize()Returnsparameters_count, which is the number of parameters.-
Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set
-
-
-
-
Field Detail
-
tag
public static final String tag
The name of this attribute"MethodParameters".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MethodParametersAttribute
public MethodParametersAttribute(ConstPool cp, String[] names, int[] flags)
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 Detail
-
size
public int size()
Returnsparameters_count, which is the number of parameters.
-
name
public int name(int i)
Returns the value ofname_indexof the i-th element ofparameters.- Parameters:
i- the position of the parameter.
-
parameterName
public String parameterName(int i)
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_flagsof the i-th element ofparameters.- Parameters:
i- the position of the parameter.- See Also:
AccessFlag
-
copy
public AttributeInfo copy(ConstPool newCp, Map<String,String> classnames)
Makes a copy.- Overrides:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- ignored.
-
-