Top Description Fields Constructors Methods
javassist.bytecode

public Class MethodParametersAttribute

extends AttributeInfo
Class Inheritance
Imports
java.io.DataInputStream, .IOException, java.util.Map

MethodParameters_attribute.

Field Summary

Modifier and TypeField and Description
public static final String
tag

The name of this attribute "MethodParameters".

Inherited from javassist.bytecode.AttributeInfo:
constPoolinfoname

Constructor Summary

AccessConstructor and Description
pack-priv
public
MethodParametersAttribute(ConstPool
a constant pool table.
cp
,
String[]
an array of parameter names. The i-th element is the name of the i-th parameter.
names
,
int[]
an array of parameter access flags.
flags
)

Constructs an attribute.

Method Summary

Modifier and TypeMethod and Description
public int
accessFlags(int
the position of the parameter.
i
)

Returns the value of access_flags of the i-th element of parameters.

public AttributeInfo
copy(ConstPool
the constant pool table used by the new copy.
newCp
,
Map<String, String>
ignored.
classnames
)

Overrides javassist.bytecode.AttributeInfo.copy.

Makes a copy.

public int
name(int
the position of the parameter.
i
)

Returns the value of name_index of the i-th element of parameters.

public String
parameterName(int
the position of the parameter.
i
)

Returns the name of the i-th element of parameters.

public int
size()

Returns parameters_count, which is the number of parameters.

Inherited from javassist.bytecode.AttributeInfo:
copyAllgetgetConstPoolgetLengthgetNamegetRefClassesgetRefClasseslengthlookupreadremoverenameClassrenameClassrenameClassrenameClasssetwritewriteAll

Field Detail

tagback to summary
public static final String tag

The name of this attribute "MethodParameters".

Constructor Detail

MethodParametersAttributeback to summary
pack-priv MethodParametersAttribute(ConstPool cp, int n, DataInputStream in) throws IOException
MethodParametersAttributeback to summary
public MethodParametersAttribute(ConstPool cp, String[] names, int[] flags)

Constructs an attribute.

Parameters
cp:ConstPool

a constant pool table.

names:String[]

an array of parameter names. The i-th element is the name of the i-th parameter.

flags:int[]

an array of parameter access flags.

Method Detail

accessFlagsback to summary
public int accessFlags(int i)

Returns the value of access_flags of the i-th element of parameters.

Parameters
i:int

the position of the parameter.

See Also
AccessFlag
copyback to summary
public AttributeInfo copy(ConstPool newCp, Map<String, String> classnames)

Overrides javassist.bytecode.AttributeInfo.copy.

Makes a copy.

Parameters
newCp:ConstPool

the constant pool table used by the new copy.

classnames:Map<String, String>

ignored.

Annotations
@Override
nameback to summary
public int name(int i)

Returns the value of name_index of the i-th element of parameters.

Parameters
i:int

the position of the parameter.

parameterNameback to summary
public String parameterName(int i)

Returns the name of the i-th element of parameters.

Parameters
i:int

the position of the parameter.

sizeback to summary
public int size()

Returns parameters_count, which is the number of parameters.