public class INVOKEDYNAMIC extends InvokeInstruction
index
length, opcode
Constructor and Description |
---|
INVOKEDYNAMIC(int index) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(DataOutputStream out)
Dump instruction as byte code to stream out.
|
String |
getClassName(ConstantPoolGen cpg)
Override the parent method because our classname is held elsewhere.
|
Class<?>[] |
getExceptions() |
ReferenceType |
getReferenceType(ConstantPoolGen cpg)
Since InvokeDynamic doesn't refer to a reference type, just return java.lang.Object,
as that is the only type we can say for sure the reference will be.
|
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (i.e., index) from file.
|
String |
toString(ConstantPool cp) |
consumeStack, getArgumentTypes, getMethodName, getReturnType, getType, produceStack
getClassType, getLoadClassType, getName, getSignature
getIndex, setIndex, toString
copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, readInstruction, setComparator, toString
public void dump(DataOutputStream out) throws IOException
dump
in class CPInstruction
out
- Output streamIOException
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 String toString(ConstantPool cp)
toString
in class InvokeInstruction
public Class<?>[] getExceptions()
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor objectpublic String getClassName(ConstantPoolGen cpg)
getClassName
in class InvokeInstruction
public ReferenceType getReferenceType(ConstantPoolGen cpg)
getReferenceType
in class FieldOrMethod
cpg
- the ConstantPoolGen used to create the instructionCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.