public class INVOKEDYNAMIC extends InvokeInstruction
indexlength, 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 class name 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.
|
consumeStack, getArgumentTypes, getMethodName, getReturnType, getType, produceStack, toStringgetClassType, getLoadClassType, getName, getSignaturegetIndex, setIndex, toStringcopy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, readInstruction, setComparator, toStringpublic INVOKEDYNAMIC(int index)
public void accept(Visitor v)
accept in class Instructionv - Visitor objectpublic void dump(DataOutputStream out) throws IOException
dump in class CPInstructionout - Output streamIOExceptionpublic String getClassName(ConstantPoolGen cpg)
getClassName in class InvokeInstructionpublic Class<?>[] getExceptions()
public ReferenceType getReferenceType(ConstantPoolGen cpg)
getReferenceType in class FieldOrMethodcpg - the ConstantPoolGen used to create the instructionprotected 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 fileCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.