de.fub.bytecode.generic
Class INVOKEINTERFACE

java.lang.Object
  |
  +--de.fub.bytecode.generic.Instruction
        |
        +--de.fub.bytecode.generic.CPInstruction
              |
              +--de.fub.bytecode.generic.FieldOrMethod
                    |
                    +--de.fub.bytecode.generic.InvokeInstruction
                          |
                          +--de.fub.bytecode.generic.INVOKEINTERFACE

public final class INVOKEINTERFACE
extends InvokeInstruction

INVOKEINTERFACE - Invoke interface method

Stack: ..., objectref, [arg1, [arg2 ...]] -> ...

Version:
$Id: INVOKEINTERFACE.java,v 1.8 1999/09/22 13:00:06 dahm Exp $
Author:
M. Dahm
See Also:
Serialized Form

Fields inherited from class de.fub.bytecode.generic.CPInstruction
index
 
Fields inherited from class de.fub.bytecode.generic.Instruction
length, tag
 
Constructor Summary
INVOKEINTERFACE(int index, int nargs)
           
 
Method Summary
 int consumeStack(ConstantPoolGen cpg)
           
 void dump(java.io.DataOutputStream out)
          Dump instruction as byte code to stream out.
 java.lang.Class[] getExceptions()
           
 int getNoArguments()
           
protected  void initFromFile(ByteSequence bytes, boolean wide)
          Read needed data (i.e.
 java.lang.String toString(ConstantPool cp)
           
 
Methods inherited from class de.fub.bytecode.generic.InvokeInstruction
getArgumentTypes, getMethodName, getReturnType, getType, produceStack
 
Methods inherited from class de.fub.bytecode.generic.FieldOrMethod
getClassName, getClassType, getName, getSignature
 
Methods inherited from class de.fub.bytecode.generic.CPInstruction
getIndex, setIndex, toString
 
Methods inherited from class de.fub.bytecode.generic.Instruction
consumeStack, copy, getLength, getTag, produceStack, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

INVOKEINTERFACE

public INVOKEINTERFACE(int index,
                       int nargs)
Method Detail

dump

public void dump(java.io.DataOutputStream out)
          throws java.io.IOException
Dump instruction as byte code to stream out.
Parameters:
out - Output stream
Overrides:
dump in class CPInstruction

getNoArguments

public int getNoArguments()

initFromFile

protected void initFromFile(ByteSequence bytes,
                            boolean wide)
                     throws java.io.IOException
Read needed data (i.e. index) from file.
Overrides:
initFromFile in class CPInstruction

toString

public java.lang.String toString(ConstantPool cp)
Returns:
mnemonic for instruction with symbolic references resolved
Overrides:
toString in class InvokeInstruction

consumeStack

public int consumeStack(ConstantPoolGen cpg)
Overrides:
consumeStack in class InvokeInstruction

getExceptions

public java.lang.Class[] getExceptions()