public class INVOKEDYNAMIC extends FieldOrMethod 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) |
java.lang.Class<?>[] |
getExceptions() |
java.lang.String |
getMethodName(ConstantPoolGen cpg) |
java.lang.String |
getName(ConstantPoolGen cpg) |
ConstantNameAndType |
getNameAndType(ConstantPoolGen cpg) |
Type |
getReturnType(ConstantPoolGen cpg) |
java.lang.String |
getSignature(ConstantPoolGen cpg) |
Type |
getType(ConstantPoolGen cpg)
Returns the type associated with this instruction.
|
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.
|
java.lang.String |
toString(ConstantPool cp) |
getClassName, getClassType, getLoadClassType, getReferenceTypedump, getIndex, setIndex, toStringcopy, equals, getComparator, getLength, getName, getOpcode, hashCode, readInstruction, setComparator, toStringpublic INVOKEDYNAMIC(short opcode,
int index)
index - to constant poolpublic java.lang.String toString(ConstantPool cp)
toString in class CPInstructionpublic ConstantNameAndType getNameAndType(ConstantPoolGen cpg)
public java.lang.String getSignature(ConstantPoolGen cpg)
getSignature in class FieldOrMethodpublic java.lang.String getName(ConstantPoolGen cpg)
getName in class FieldOrMethodpublic 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)
LoadClassgetType in interface LoadClassgetType in interface TypedInstructiongetType in class CPInstructionLoadClass.getLoadClassType(ConstantPoolGen)public java.lang.String getMethodName(ConstantPoolGen cpg)
public Type getReturnType(ConstantPoolGen cpg)
public Type[] getArgumentTypes(ConstantPoolGen cpg)
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile in class CPInstructionbytes - input streamwide - wide prefix?java.io.IOException - may be thrown if the implementation needs to read data from the filepublic java.lang.Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic void accept(Visitor v)
accept in class Instructionv - Visitor object