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

public final Class ConstantFieldref

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

This class represents a constant pool reference to a field.

Field Summary

Inherited from com.sun.org.apache.bcel.internal.classfile.ConstantCP:
class_indexname_and_type_index

Constructor Summary

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

Initialize from another object.

pack-priv
ConstantFieldref(final DataInput
input stream
input
)

Initialize instance from input data.

public
ConstantFieldref(final int
Reference to the class containing the Field
classIndex
,
final int
and the Field signature
nameAndTypeIndex
)

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.

Inherited from com.sun.org.apache.bcel.internal.classfile.ConstantCP:
dumpgetClassgetClassIndexgetNameAndTypeIndexsetClassIndexsetNameAndTypeIndextoString

Constructor Detail

ConstantFieldrefback to summary
public ConstantFieldref(final ConstantFieldref c)

Initialize from another object.

Parameters
c:ConstantFieldref

Source to copy.

ConstantFieldrefback to summary
pack-priv ConstantFieldref(final DataInput input) throws IOException

Initialize instance from input data.

Parameters
input:DataInput

input stream

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

Reference to the class containing the Field

nameAndTypeIndex:int

and the Field signature

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 Fields, fields, attributes, etc. spawns a tree of objects.

Parameters
v:Visitor

Visitor object

Annotations
@Override