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.Implements
Nodeas of 6.7.0.- Since:
- 6.0
- See Also:
- The class File Format : The MethodParameters Attribute
-
-
Constructor Summary
Constructors Constructor Description MethodParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)MethodParametercopy()voiddump(java.io.DataOutputStream file)Dumps object to file stream on binary format.intgetAccessFlags()intgetNameIndex()java.lang.StringgetParameterName(ConstantPool constantPool)Gets the name of the parameter.booleanisFinal()booleanisMandated()booleanisSynthetic()voidsetAccessFlags(int accessFlags)voidsetNameIndex(int nameIndex)
-
-
-
Constructor Detail
-
MethodParameter
public MethodParameter()
-
-
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
Dumps 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)
Gets the name of the parameter.- Parameters:
constantPool- The pool to query.- Returns:
- Constant from the given pool.
-
isFinal
public boolean isFinal()
-
isMandated
public boolean isMandated()
-
isSynthetic
public boolean isSynthetic()
-
setAccessFlags
public void setAccessFlags(int accessFlags)
-
setNameIndex
public void setNameIndex(int nameIndex)
-
-