org.multijava.util.classfile
Class PushLiteralInstruction.ShortOperand
java.lang.Object
org.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
|
|
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 |
value
private final short value
PushLiteralInstruction.ShortOperand
PushLiteralInstruction.ShortOperand(short value)
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 dataout - the file where to write this object info
- Throws:
IOException - an io problem has occured
JML is Copyright (C) 1998-2002 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. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.