mjc

org.multijava.util.classfile
Class PushLiteralInstruction.ByteOperand

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

class PushLiteralInstruction.ByteOperand
extends java.lang.Object
implements PushLiteralInstruction.Operand


Field Summary
private  byte value
           
 
Constructor Summary
(package private) PushLiteralInstruction.ByteOperand(byte 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, java.io.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 byte value
Constructor Detail

PushLiteralInstruction.ByteOperand

PushLiteralInstruction.ByteOperand(byte 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,
                  java.io.DataOutput out)
           throws java.io.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:
java.io.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.