Package org.apache.bcel.classfile
Class MethodParameter
- java.lang.Object
-
- org.apache.bcel.classfile.MethodParameter
-
- All Implemented Interfaces:
java.lang.Cloneable
,Node
public class MethodParameter extends java.lang.Object implements java.lang.Cloneable, Node
Entry of the parameters table.- Since:
- 6.0
- See Also:
- The class File Format : The MethodParameters Attribute
-
-
Field Summary
Fields Modifier and Type Field Description private int
accessFlags
The access flagsprivate int
nameIndex
Index of the CONSTANT_Utf8_info structure in the constant_pool table representing the name of the parameter
-
Constructor Summary
Constructors Constructor Description MethodParameter()
MethodParameter(java.io.DataInput input)
Construct object from input stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
MethodParameter
copy()
void
dump(java.io.DataOutputStream file)
Dump object to file stream on binary format.int
getAccessFlags()
int
getNameIndex()
java.lang.String
getParameterName(ConstantPool constantPool)
Returns the name of the parameter.boolean
isFinal()
boolean
isMandated()
boolean
isSynthetic()
void
setAccessFlags(int accessFlags)
void
setNameIndex(int nameIndex)
-
-
-
Constructor Detail
-
MethodParameter
public MethodParameter()
-
MethodParameter
MethodParameter(java.io.DataInput input) throws java.io.IOException
Construct object from input stream.- Parameters:
input
- Input stream- Throws:
java.io.IOException
- if an I/O error occurs.ClassFormatException
- if a class is malformed or cannot be interpreted as a class file
-
-
Method Detail
-
copy
public MethodParameter copy()
- Returns:
- deep copy of this object
-
dump
public final void dump(java.io.DataOutputStream file) throws java.io.IOException
Dump object to file stream on binary format.- Parameters:
file
- Output file stream- Throws:
java.io.IOException
- if an I/O error occurs.
-
getAccessFlags
public int getAccessFlags()
-
getNameIndex
public int getNameIndex()
-
getParameterName
public java.lang.String getParameterName(ConstantPool constantPool)
Returns the name of the parameter.
-
isFinal
public boolean isFinal()
-
isMandated
public boolean isMandated()
-
isSynthetic
public boolean isSynthetic()
-
setAccessFlags
public void setAccessFlags(int accessFlags)
-
setNameIndex
public void setNameIndex(int nameIndex)
-
-