APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.classfile

public Class MethodParameter

extends Object
implements Cloneable, Node
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.classfile.Node, java.lang.Cloneable
Imports
java.io.DataInput, .DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.Const

Entry of the parameters table.

Implements Node as of 6.7.0.

Since
6.0
See Also
The class File Format : The MethodParameters Attribute

Field Summary

Modifier and TypeField and Description
private int
accessFlags

The access flags

private int
nameIndex

Index of the CONSTANT_Utf8_info structure in the constant_pool table representing the name of the parameter

Constructor Summary

AccessConstructor and Description
public
pack-priv
MethodParameter(final DataInput
Input stream
input
)

Constructs an instance from a DataInput.

Method Summary

Modifier and TypeMethod and Description
public void
public MethodParameter
copy()

Returns: deep copy of this object

public final void
dump(final DataOutputStream
Output file stream
file
)

Dumps object to file stream on binary format.

public int
public int
public String

Returns:

Constant from the given pool.
getParameterName
(final ConstantPool
The pool to query.
constantPool
)

Gets the name of the parameter.

public boolean
public boolean
public boolean
public void
setAccessFlags(final int accessFlags)

public void
setNameIndex(final int nameIndex)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessFlagsback to summary
private int accessFlags

The access flags

nameIndexback to summary
private int nameIndex

Index of the CONSTANT_Utf8_info structure in the constant_pool table representing the name of the parameter

Constructor Detail

MethodParameterback to summary
public MethodParameter()
MethodParameterback to summary
pack-priv MethodParameter(final DataInput input) throws IOException

Constructs an instance from a DataInput.

Parameters
input:DataInput

Input stream

Exceptions
IOException:
if an I/O error occurs.
ClassFormatException:
if a class is malformed or cannot be interpreted as a class file

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements com.sun.org.apache.bcel.internal.classfile.Node.accept.

Annotations
@Override
copyback to summary
public MethodParameter copy()
Returns:MethodParameter

deep copy of this object

dumpback to summary
public final void dump(final DataOutputStream file) throws IOException

Dumps object to file stream on binary format.

Parameters
file:DataOutputStream

Output file stream

Exceptions
IOException:
if an I/O error occurs.
getAccessFlagsback to summary
public int getAccessFlags()
getNameIndexback to summary
public int getNameIndex()
getParameterNameback to summary
public String getParameterName(final ConstantPool constantPool)

Gets the name of the parameter.

Parameters
constantPool:ConstantPool

The pool to query.

Returns:String

Constant from the given pool.

isFinalback to summary
public boolean isFinal()
isMandatedback to summary
public boolean isMandated()
isSyntheticback to summary
public boolean isSynthetic()
setAccessFlagsback to summary
public void setAccessFlags(final int accessFlags)
setNameIndexback to summary
public void setNameIndex(final int nameIndex)