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

public final Class ConstantInvokeDynamic

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

This class is derived from the abstract Constant and represents a reference to a invoke dynamic.
Since
6.0
See Also
Constant, The CONSTANT_InvokeDynamic_info Structure in The Java Virtual Machine Specification

Field Summary

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

Constructor Summary

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

Initialize from another object.

pack-priv
ConstantInvokeDynamic(final DataInput
Input stream
file
)

Initialize instance from file data.

public
ConstantInvokeDynamic(final int bootstrapMethodAttrIndex, final int 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.

public int

Returns:

Reference (index) to bootstrap method this constant refers to. Note that this method is a functional duplicate of getClassIndex for use by ConstantInvokeDynamic.
getBootstrapMethodAttrIndex
()

public String

Returns:

String representation
toString
()

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

Returns a string representation of the object.

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

Constructor Detail

ConstantInvokeDynamicback to summary
public ConstantInvokeDynamic(final ConstantInvokeDynamic c)

Initialize from another object.

Parameters
c:ConstantInvokeDynamic

Source to copy.

ConstantInvokeDynamicback to summary
pack-priv ConstantInvokeDynamic(final DataInput file) throws IOException

Initialize instance from file data.

Parameters
file:DataInput

Input stream

Exceptions
IOException:
if an I/O error occurs.
ConstantInvokeDynamicback to summary
public ConstantInvokeDynamic(final int bootstrapMethodAttrIndex, final int nameAndTypeIndex)

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
getBootstrapMethodAttrIndexback to summary
public int getBootstrapMethodAttrIndex()
Returns:int

Reference (index) to bootstrap method this constant refers to. Note that this method is a functional duplicate of getClassIndex for use by ConstantInvokeDynamic.

Since
6.0
toStringback to summary
public String toString()

Overrides com.sun.org.apache.bcel.internal.classfile.ConstantCP.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