public class INVOKEDYNAMIC extends FieldOrMethod 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) |
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, getReferenceType
dump, getIndex, setIndex, toString
copy, equals, getComparator, getLength, getName, getOpcode, hashCode, readInstruction, setComparator, toString
public INVOKEDYNAMIC(short opcode, int index)
index
- to constant poolpublic java.lang.String toString(ConstantPool cp)
toString
in class CPInstruction
public ConstantNameAndType getNameAndType(ConstantPoolGen cpg)
public java.lang.String getSignature(ConstantPoolGen cpg)
getSignature
in class FieldOrMethod
public java.lang.String getName(ConstantPoolGen cpg)
getName
in class FieldOrMethod
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)
LoadClass
getType
in interface LoadClass
getType
in interface TypedInstruction
getType
in class CPInstruction
LoadClass.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 CPInstruction
bytes
- 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 ExceptionThrower
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object