All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.IINC

java.lang.Object
   |
   +----de.fub.bytecode.generic.Instruction
           |
           +----de.fub.bytecode.generic.IINC

public class IINC
extends Instruction
IINC - Increment local variable by constant

Version:
$Id: IINC.java,v 1.6 1999/05/04 13:13:53 dahm Exp $
Author:
M. Dahm

Constructor Index

 o IINC(int, int)

Method Index

 o dump(DataOutputStream)
Dump instruction as byte code to stream out.
 o getIncrement()
 o getIndex()
 o initFromFile(ByteSequence, boolean)
Read needed data (e.g.
 o setIncrement(int)
Set increment factor.
 o setIndex(int)
Set index of local variable.
 o toString(boolean)

Constructors

 o IINC
 public IINC(int n,
             int c)

Methods

 o dump
 public void dump(DataOutputStream out) throws IOException
Dump instruction as byte code to stream out.

Parameters:
out - Output stream
Overrides:
dump in class Instruction
 o initFromFile
 protected void initFromFile(ByteSequence bytes,
                             boolean wide) throws IOException
Read needed data (e.g. index) from file.

Overrides:
initFromFile in class Instruction
 o toString
 public String toString(boolean verbose)
Returns:
mnemonic for instruction
Overrides:
toString in class Instruction
 o getIndex
 public final int getIndex()
Returns:
index of local variable referred by this instruction.
 o setIndex
 public final void setIndex(int n)
Set index of local variable.

 o getIncrement
 public final int getIncrement()
Returns:
increment factor
 o setIncrement
 public final void setIncrement(int c)
Set increment factor.


All Packages  Class Hierarchy  This Package  Previous  Next  Index