|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.AbstractInstructionAccessor
org.multijava.util.classfile.Instruction
org.multijava.util.classfile.MethodRefInstruction
Instruction that references method opc_invokevirtual,_invokespecial, opc_invokestatic
| Field Summary | |
private MethodRefConstant |
method
|
| Fields inherited from class org.multijava.util.classfile.Instruction |
|
| Constructor Summary | |
MethodRefInstruction(int opcode,
String name,
String type)
Constructs a new method reference instruction |
|
MethodRefInstruction(int opcode,
String owner,
String name,
String type)
Constructs a new method reference instruction |
|
MethodRefInstruction(int opcode,
MethodRefConstant method)
Constructs a new method reference instruction from a class file |
|
| Method Summary | |
boolean |
canComplete()
Returns true iff control flow can reach the next instruction in textual order. |
MethodRefConstant |
getMethodRefConstant()
Returns the method reference constant used by this instruction |
int |
getPushedOnStack()
Returns the size of data pushed on the stack by this instruction |
byte |
getReturnType()
Returns the type pushed on the stack |
(package private) int |
getSize()
Returns the number of bytes used by the the instruction in the code array. |
int |
getStack()
Return the amount of stack (positive or negative) used by this instruction |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool |
(package private) void |
write(ConstantPool cp,
DataOutput out)
Write this instruction into a file |
| Methods inherited from class org.multijava.util.classfile.Instruction |
check, computeEndAddress, dump, getAddress, getLocalVar, getOpcode, getPoppedFromStack, isLiteral, setAddress, setOpcode |
| Methods inherited from class org.multijava.util.classfile.AbstractInstructionAccessor |
transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private MethodRefConstant method
| Constructor Detail |
public MethodRefInstruction(int opcode,
String name,
String type)
opcode - the opcode of the instructionname - the qualified name of the referenced objecttype - the signature of the referenced object
public MethodRefInstruction(int opcode,
String owner,
String name,
String type)
opcode - the opcode of the instructionname - the qualified name of the referenced objecttype - the signature of the referenced object
public MethodRefInstruction(int opcode,
MethodRefConstant method)
opcode - the opcode of the instructionmethod - the method reference (as pooled constant)| Method Detail |
public boolean canComplete()
void resolveConstants(ConstantPool cp)
cp - the constant pool for this classint getSize()
public MethodRefConstant getMethodRefConstant()
public byte getReturnType()
public int getPushedOnStack()
public int getStack()
void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant pool that contain all dataout - the file where to write this object info
IOException - an io problem has occured
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||