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

public final Class ConstantMethodType

extends Constant
Class Inheritance
Imports
java.io.DataInput, .DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.Const

This class is derived from the abstract Constant and represents a reference to a method type.
Since
6.0
See Also
Constant

Field Summary

Modifier and TypeField and Description
private int
Inherited from com.sun.org.apache.bcel.internal.classfile.Constant:
EMPTY_ARRAYtag

Constructor Summary

AccessConstructor and Description
public
ConstantMethodType(final ConstantMethodType
Source to copy.
c
)

Initialize from another object.

pack-priv
ConstantMethodType(final DataInput
Input stream
file
)

Initialize instance from file data.

public
ConstantMethodType(final int descriptorIndex)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.accept.

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

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.

public void
dump(final DataOutputStream
Output file stream
file
)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.dump.

Dump name and signature index to file stream in binary format.

public int
public void
setDescriptorIndex(final int descriptorIndex)

public String

Returns:

String representation
toString
()

Overrides com.sun.org.apache.bcel.internal.classfile.Constant.toString.

Returns a string representation of the object.

Inherited from com.sun.org.apache.bcel.internal.classfile.Constant:
clonecopyequalsgetComparatorgetTaghashCodereadConstantsetComparator

Field Detail

descriptorIndexback to summary
private int descriptorIndex

Constructor Detail

ConstantMethodTypeback to summary
public ConstantMethodType(final ConstantMethodType c)

Initialize from another object.

Parameters
c:ConstantMethodType

Source to copy.

ConstantMethodTypeback to summary
pack-priv ConstantMethodType(final DataInput file) throws IOException

Initialize instance from file data.

Parameters
file:DataInput

Input stream

Exceptions
IOException:
if an I/O error occurs.
ConstantMethodTypeback to summary
public ConstantMethodType(final int descriptorIndex)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.accept.

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

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters
v:Visitor

Visitor object

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

Implements abstract com.sun.org.apache.bcel.internal.classfile.Constant.dump.

Dump name and signature index to file stream in binary format.

Parameters
file:DataOutputStream

Output file stream

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs.
getDescriptorIndexback to summary
public int getDescriptorIndex()
setDescriptorIndexback to summary
public void setDescriptorIndex(final int descriptorIndex)
toStringback to summary
public String toString()

Overrides com.sun.org.apache.bcel.internal.classfile.Constant.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

String representation

Annotations
@Override