Package org.apache.bcel.classfile
Class MethodParameter
java.lang.Object
org.apache.bcel.classfile.MethodParameter
- All Implemented Interfaces:
Cloneable
Entry of the parameters table.
- Since:
- 6.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe access flagsprivate intIndex of the CONSTANT_Utf8_info structure in the constant_pool table representing the name of the parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy()final voiddump(DataOutputStream file) Dump object to file stream on binary format.intintgetParameterName(ConstantPool constant_pool) Returns the name of the parameter.booleanisFinal()booleanbooleanvoidsetAccessFlags(int access_flags) voidsetNameIndex(int name_index)
-
Field Details
-
name_index
private int name_indexIndex of the CONSTANT_Utf8_info structure in the constant_pool table representing the name of the parameter -
access_flags
private int access_flagsThe access flags
-
-
Constructor Details
-
MethodParameter
public MethodParameter() -
MethodParameter
MethodParameter(DataInput input) throws IOException Construct object from input stream.- Parameters:
input- Input stream- Throws:
IOExceptionClassFormatException
-
-
Method Details
-
getNameIndex
public int getNameIndex() -
setNameIndex
public void setNameIndex(int name_index) -
getParameterName
Returns the name of the parameter. -
getAccessFlags
public int getAccessFlags() -
setAccessFlags
public void setAccessFlags(int access_flags) -
isFinal
public boolean isFinal() -
isSynthetic
public boolean isSynthetic() -
isMandated
public boolean isMandated() -
accept
-
dump
Dump object to file stream on binary format.- Parameters:
file- Output file stream- Throws:
IOException
-
copy
- Returns:
- deep copy of this object
-