Top Description Fields Constructors Methods
org.objectweb.asm.tree

public Class InvokeDynamicInsnNode

extends AbstractInsnNode
Class Inheritance
Imports
java.util.Map, org.objectweb.asm.Handle, .MethodVisitor, .Opcodes

A node that represents an invokedynamic instruction.
Author
Remi Forax

Field Summary

Modifier and TypeField and Description
public Handle
bsm

The bootstrap method.

public Object[]
bsmArgs

The bootstrap method constant arguments.

public String
desc

The method's descriptor (see org.objectweb.asm.Type).

public String
name

The method's name.

Inherited from org.objectweb.asm.tree.AbstractInsnNode:
FIELD_INSNFRAMEIINC_INSNindexINSNINT_INSNinvisibleTypeAnnotationsINVOKE_DYNAMIC_INSNJUMP_INSNLABELLDC_INSNLINELOOKUPSWITCH_INSNMETHOD_INSNMULTIANEWARRAY_INSNnextInsnopcodepreviousInsnTABLESWITCH_INSNTYPE_INSNVAR_INSNvisibleTypeAnnotations

Constructor Summary

AccessConstructor and Description
public
InvokeDynamicInsnNode(final String
the method's name.
name
,
final String
the method's descriptor (see org.objectweb.asm.Type).
descriptor
,
final Handle
the bootstrap method.
bootstrapMethodHandle
,
final Object...
the bootstrap method constant arguments. Each argument must be an Integer, Float, Long, Double, String, org.objectweb.asm.Type or Handle value. This method is allowed to modify the content of the array so a caller should expect that this array may change.
bootstrapMethodArguments
)

Constructs a new InvokeDynamicInsnNode.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final MethodVisitor
a method visitor.
methodVisitor
)

Implements abstract org.objectweb.asm.tree.AbstractInsnNode.accept.

Makes the given method visitor visit this instruction.
public AbstractInsnNode
clone(final Map<LabelNode, LabelNode>
a map from LabelNodes to cloned LabelNodes.
clonedLabels
)

Implements abstract org.objectweb.asm.tree.AbstractInsnNode.clone.

Returns a copy of this instruction.
public int
getType()

Implements abstract org.objectweb.asm.tree.AbstractInsnNode.getType.

Returns the type of this instruction.
Inherited from org.objectweb.asm.tree.AbstractInsnNode:
acceptAnnotationscloneclonecloneAnnotationsgetNextgetOpcodegetPrevious

Field Detail

bsmback to summary
public Handle bsm

The bootstrap method.

bsmArgsback to summary
public Object[] bsmArgs

The bootstrap method constant arguments.

descback to summary
public String desc

The method's descriptor (see org.objectweb.asm.Type).

nameback to summary
public String name

The method's name.

Constructor Detail

InvokeDynamicInsnNodeback to summary
public InvokeDynamicInsnNode(final String name, final String descriptor, final Handle bootstrapMethodHandle, final Object... bootstrapMethodArguments)

Constructs a new InvokeDynamicInsnNode.

Parameters
name:String

the method's name.

descriptor:String

the method's descriptor (see org.objectweb.asm.Type).

bootstrapMethodHandle:Handle

the bootstrap method.

bootstrapMethodArguments:Object[]

the bootstrap method constant arguments. Each argument must be an Integer, Float, Long, Double, String, org.objectweb.asm.Type or Handle value. This method is allowed to modify the content of the array so a caller should expect that this array may change.

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor)

Implements abstract org.objectweb.asm.tree.AbstractInsnNode.accept.

Doc from org.objectweb.asm.tree.AbstractInsnNode.accept.

Makes the given method visitor visit this instruction.

Parameters
methodVisitor:MethodVisitor

a method visitor.

Annotations
@Override
cloneback to summary
public AbstractInsnNode clone(final Map<LabelNode, LabelNode> clonedLabels)

Implements abstract org.objectweb.asm.tree.AbstractInsnNode.clone.

Doc from org.objectweb.asm.tree.AbstractInsnNode.clone.

Returns a copy of this instruction.

Parameters
clonedLabels:Map<LabelNode, LabelNode>

a map from LabelNodes to cloned LabelNodes.

Returns:AbstractInsnNode

a copy of this instruction. The returned instruction does not belong to any InsnList.

Annotations
@Override
getTypeback to summary
public int getType()

Implements abstract org.objectweb.asm.tree.AbstractInsnNode.getType.

Doc from org.objectweb.asm.tree.AbstractInsnNode.getType.

Returns the type of this instruction.

Returns:int

the type of this instruction, i.e. one the constants defined in this class.

Annotations
@Override