public abstract class InvokeInstruction extends FieldOrMethod implements ExceptionThrower, TypedInstruction, StackConsumer, StackProducer
indexlength, opcode| Modifier | Constructor and Description |
|---|---|
protected |
InvokeInstruction(short opcode,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
|
Type[] |
getArgumentTypes(ConstantPoolGen cpg) |
String |
getMethodName(ConstantPoolGen cpg) |
Type |
getReturnType(ConstantPoolGen cpg) |
Type |
getType(ConstantPoolGen cpg)
Returns the type associated with this instruction.
|
int |
produceStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
|
String |
toString(ConstantPool cp) |
getClassName, getClassType, getLoadClassType, getName, getSignaturedump, getIndex, initFromFile, setIndex, toStringaccept, copy, equals, getComparator, getLength, getName, getOpcode, readInstruction, setComparator, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExceptionsprotected InvokeInstruction(short opcode,
int index)
index - to constant poolpublic String toString(ConstantPool cp)
toString in class CPInstructionpublic 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 String getMethodName(ConstantPoolGen cpg)
public Type getReturnType(ConstantPoolGen cpg)
public Type[] getArgumentTypes(ConstantPoolGen cpg)
Copyright © 2018–2021 mhoffrogge. All rights reserved.