Top Description Fields Constructors Methods
org.apache.bcel.classfile

public final Class ConstantMethodref

extends ConstantCP
Class Inheritance
Imports
java.io.DataInput, .IOException, org.apache.bcel.Const

This class represents a constant pool reference to a method.

Field Summary

Inherited from org.apache.bcel.classfile.ConstantCP:
class_indexname_and_type_index

Constructor Summary

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

Initialize from another object.

pack-priv
ConstantMethodref(final DataInput
input stream
input
)

Initialize instance from input data.

public
ConstantMethodref(final int
Reference to the class containing the method
classIndex
,
final int
and the method signature
nameAndTypeIndex
)

Method Summary

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

Implements abstract org.apache.bcel.classfile.Constant.accept.

Implements org.apache.bcel.classfile.Node.accept.

Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
Inherited from org.apache.bcel.classfile.ConstantCP:
dumpgetClassgetClassIndexgetNameAndTypeIndexsetClassIndexsetNameAndTypeIndextoString

Constructor Detail

ConstantMethodrefback to summary
public ConstantMethodref(final ConstantMethodref c)

Initialize from another object.

Parameters
c:ConstantMethodref

Source to copy.

ConstantMethodrefback to summary
pack-priv ConstantMethodref(final DataInput input) throws IOException

Initialize instance from input data.

Parameters
input:DataInput

input stream

Exceptions
IOException:
if an I/O error occurs.
ConstantMethodrefback to summary
public ConstantMethodref(final int classIndex, final int nameAndTypeIndex)
Parameters
classIndex:int

Reference to the class containing the method

nameAndTypeIndex:int

and the method signature

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract org.apache.bcel.classfile.Constant.accept.

Implements org.apache.bcel.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