Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc.code.instructions
Class InvokeInterface  view InvokeInterface download InvokeInterface.java

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.code.instructions.Instruction
      extended bycom.chaoswg.xtc4y.classdesc.code.instructions.InvokeInterface

public class InvokeInterface
extends Instruction

A invoke interface instruction is used by calling a interface method. It consists of the command, the number of arguments passed, a index to a MethodsInterfacerefCPEntry and the byte value 0. The number of used bytes is therefore 5 (4 byte operands and the command) TBD: add constructor for an instruction creation withou stream


Field Summary
private  byte args
           
private  com.chaoswg.xtc4y.classdesc.InterfaceMethodrefCPEntry cpEntry
           
static byte INVOKEINTERFACE
          Opcode of the InvokeInterface insturction
private  byte zero
           
 
Fields inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.Instruction
 
Constructor Summary
protected InvokeInterface(java.io.DataInputStream dis, com.chaoswg.xtc4y.classdesc.ConstantPool cp)
          Creates an InvokeInterace and initializes it from a DataInputStream
 
Method Summary
 int getNumberOfUsedBytes()
           
 void write(java.io.DataOutputStream dos, com.chaoswg.xtc4y.classdesc.ConstantPool cp)
          Write the instruction onto the DataOutputStream, using the constant pool to register variables.
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.code.instructions.Instruction
getCommand, getIndex, getOpcode, resolveIndices, setIndex, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cpEntry

private com.chaoswg.xtc4y.classdesc.InterfaceMethodrefCPEntry cpEntry

zero

private byte zero

args

private byte args

INVOKEINTERFACE

public static final byte INVOKEINTERFACE
Opcode of the InvokeInterface insturction

See Also:
Constant Field Values
Constructor Detail

InvokeInterface

protected InvokeInterface(java.io.DataInputStream dis,
                          com.chaoswg.xtc4y.classdesc.ConstantPool cp)
                   throws java.io.IOException
Creates an InvokeInterace and initializes it from a DataInputStream

Method Detail

write

public void write(java.io.DataOutputStream dos,
                  com.chaoswg.xtc4y.classdesc.ConstantPool cp)
           throws java.io.IOException
Write the instruction onto the DataOutputStream, using the constant pool to register variables. .

Overrides:
write in class Instruction

getNumberOfUsedBytes

public int getNumberOfUsedBytes()
Specified by:
getNumberOfUsedBytes in class Instruction