public class INVOKEDYNAMIC extends NameSignatureInstruction implements ExceptionThrower, StackConsumer, StackProducer
index
length, opcode
Constructor and Description |
---|
INVOKEDYNAMIC(short opcode,
int index) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
int |
consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
|
Type[] |
getArgumentTypes(ConstantPoolGen cpg) |
Class<?>[] |
getExceptions() |
ConstantInvokeDynamic |
getInvokeDynamic(ConstantPoolGen cpg)
Get the ConstantInvokeDynamic associated with this instruction
|
String |
getMethodName(ConstantPoolGen cpg) |
ConstantNameAndType |
getNameAndType(ConstantPoolGen cpg) |
Type |
getReturnType(ConstantPoolGen cpg) |
Type |
getType(ConstantPoolGen cpg) |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (i.e., index) from file.
|
int |
produceStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
|
String |
toString(ConstantPool cp) |
getName, getSignature
dump, getIndex, setIndex, toString
copy, equals, getComparator, getLength, getName, getOpcode, hashCode, readInstruction, setComparator, toString
public INVOKEDYNAMIC(short opcode, int index)
index
- to constant poolpublic String toString(ConstantPool cp)
toString
in class CPInstruction
public ConstantInvokeDynamic getInvokeDynamic(ConstantPoolGen cpg)
public ConstantNameAndType getNameAndType(ConstantPoolGen cpg)
getNameAndType
in class NameSignatureInstruction
public int consumeStack(ConstantPoolGen cpg)
consumeStack
in interface StackConsumer
consumeStack
in class Instruction
public int produceStack(ConstantPoolGen cpg)
produceStack
in interface StackProducer
produceStack
in class Instruction
public Type getType(ConstantPoolGen cpg)
getType
in interface TypedInstruction
getType
in class CPInstruction
public String getMethodName(ConstantPoolGen cpg)
public Type getReturnType(ConstantPoolGen cpg)
public Type[] getArgumentTypes(ConstantPoolGen cpg)
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile
in class CPInstruction
bytes
- input streamwide
- wide prefix?IOException
- may be thrown if the implementation needs to read data from the filepublic Class<?>[] getExceptions()
getExceptions
in interface ExceptionThrower
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor objectCopyright © 2017. All rights reserved.