public class INVOKEDYNAMIC extends NameSignatureInstruction implements ExceptionThrower, StackConsumer, StackProducer
indexlength, 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, getSignaturedump, getIndex, setIndex, toStringcopy, equals, getComparator, getLength, getName, getOpcode, hashCode, readInstruction, setComparator, toStringpublic INVOKEDYNAMIC(short opcode,
int index)
index - to constant poolpublic String toString(ConstantPool cp)
toString in class CPInstructionpublic ConstantInvokeDynamic getInvokeDynamic(ConstantPoolGen cpg)
public ConstantNameAndType getNameAndType(ConstantPoolGen cpg)
getNameAndType in class NameSignatureInstructionpublic int consumeStack(ConstantPoolGen cpg)
consumeStack in interface StackConsumerconsumeStack in class Instructionpublic int produceStack(ConstantPoolGen cpg)
produceStack in interface StackProducerproduceStack in class Instructionpublic Type getType(ConstantPoolGen cpg)
getType in interface TypedInstructiongetType in class CPInstructionpublic 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 CPInstructionbytes - input streamwide - wide prefix?IOException - may be thrown if the implementation needs to read data from the filepublic Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic void accept(Visitor v)
accept in class Instructionv - Visitor object