com.smardec.j2native
Class Int32

java.lang.Object
  |
  +--com.smardec.j2native.Argument
        |
        +--com.smardec.j2native.NumericArgument
              |
              +--com.smardec.j2native.IntegerArgument
                    |
                    +--com.smardec.j2native.Int32
All Implemented Interfaces:
java.lang.Cloneable, IntegerType, NumericType

public class Int32
extends IntegerArgument

Int32 represents a 32-bit integer value and type.


Field Summary
 
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
 
Constructor Summary
Int32()
          Constructs a Int32 object with a zero value.
Int32(int value)
          Constructs a Int32 object with a specified value.
 
Method Summary
 int getLength()
          Returns length in bytes.
protected  boolean isSigned()
          Shows if number is signed
 
Methods inherited from class com.smardec.j2native.IntegerArgument
bits2Value, booleanValue, byteValue, doubleValue, floatValue, intValue, isFixedLength, isFloat, longValue, setValue, shortValue, value2Bits
 
Methods inherited from class com.smardec.j2native.NumericArgument
fromBytesValue, read, readFromStack, toBytesValue, toBytesValue, write, writeToStack
 
Methods inherited from class com.smardec.j2native.Argument
clone, finalize, free, getAlignedLength, getResultFlags, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Int32

public Int32()
Constructs a Int32 object with a zero value.


Int32

public Int32(int value)
Constructs a Int32 object with a specified value.

Parameters:
value - value to set
Method Detail

isSigned

protected boolean isSigned()
Description copied from class: NumericArgument
Shows if number is signed

Specified by:
isSigned in class NumericArgument

getLength

public int getLength()
Description copied from class: Argument
Returns length in bytes.

Specified by:
getLength in class Argument
Returns:
an int


Copyright © 2004-2006 Smardec. All Rights Reserved.