de.fub.bytecode.generic
Class SIPUSH

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

public class SIPUSH
extends Instruction
implements ConstantPushInstruction

SIPUSH - Push short

Stack: ... -> ..., value

Version:
$Id: SIPUSH.java,v 1.6 1999/05/04 13:14:53 dahm Exp $
Author:
M. Dahm
See Also:
Serialized Form

Fields inherited from class de.fub.bytecode.generic.Instruction
length, tag
 
Constructor Summary
SIPUSH(short b)
           
 
Method Summary
 void dump(java.io.DataOutputStream out)
          Dump instruction as short code to stream out.
 java.lang.Number getValue()
           
protected  void initFromFile(ByteSequence bytes, boolean wide)
          Read needed data (e.g.
 java.lang.String toString(boolean verbose)
           
 
Methods inherited from class de.fub.bytecode.generic.Instruction
consumeStack, consumeStack, copy, getLength, getTag, produceStack, produceStack, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SIPUSH

public SIPUSH(short b)
Method Detail

dump

public void dump(java.io.DataOutputStream out)
          throws java.io.IOException
Dump instruction as short code to stream out.
Overrides:
dump in class Instruction

toString

public java.lang.String toString(boolean verbose)
Returns:
mnemonic for instruction
Overrides:
toString in class Instruction

initFromFile

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

getValue

public java.lang.Number getValue()
Specified by:
getValue in interface ConstantPushInstruction