mjc

org.multijava.util.classfile
Class PushLiteralInstruction.ShortOperand

java.lang.Object
  extended byorg.multijava.util.classfile.PushLiteralInstruction.ShortOperand
All Implemented Interfaces:
PushLiteralInstruction.Operand
Enclosing class:
PushLiteralInstruction

class PushLiteralInstruction.ShortOperand
extends Object
implements PushLiteralInstruction.Operand


Field Summary
private  short value
           
 
Constructor Summary
(package private) PushLiteralInstruction.ShortOperand(short value)
           
 
Method Summary
 int getSize()
          Returns the number of bytes used by the the operand in the code array.
 void resolveConstants(ConstantPool cp)
          Insert or check location of constant value on constant pool
 void write(ConstantPool cp, DataOutput out)
          Write this class into the the file (out) getting data position from the constant pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private final short value
Constructor Detail

PushLiteralInstruction.ShortOperand

PushLiteralInstruction.ShortOperand(short value)
Method Detail

resolveConstants

public void resolveConstants(ConstantPool cp)
Description copied from interface: PushLiteralInstruction.Operand
Insert or check location of constant value on constant pool

Specified by:
resolveConstants in interface PushLiteralInstruction.Operand
Parameters:
cp - the constant pool for this class

getSize

public int getSize()
Description copied from interface: PushLiteralInstruction.Operand
Returns the number of bytes used by the the operand in the code array.

Specified by:
getSize in interface PushLiteralInstruction.Operand

write

public void write(ConstantPool cp,
                  DataOutput out)
           throws IOException
Description copied from interface: PushLiteralInstruction.Operand
Write this class into the the file (out) getting data position from the constant pool

Specified by:
write in interface PushLiteralInstruction.Operand
Parameters:
cp - the constant pool that contain all data
out - the file where to write this object info
Throws:
IOException - an io problem has occured

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.