Home about services products contact login
   com.smardec

J2Native

  j2native
com.smardec.j2native
Class SimpleFloat

java.lang.Object
|
+--com.smardec.j2native.Argument
|
+--com.smardec.j2native.NumericArgument
|
+--com.smardec.j2native.FloatArgument
|
+--com.smardec.j2native.SimpleFloat
All Implemented Interfaces:
java.lang.Cloneable, FloatType, NumericType

public class SimpleFloat
extends FloatArgument

SimpleFloat represents float value and type.


Field Summary
Fields inherited from class com.smardec.j2native.Argument
JAVA_SIDE, NATIVE_SIDE
Constructor Summary
SimpleFloat()
Constructs a SimpleFloat object with a zero value.
SimpleFloat(float value)
Constructs a SimpleFloat object with a specified value.
Method Summary
protected void bits2Value(long bits)
Sets the value by its bit representation.
int getLength()
Returns length in bytes.
protected boolean isSigned()
Shows if number is signed
protected long value2Bits()
Returns the value as bit representation.
Methods inherited from class com.smardec.j2native.FloatArgument
booleanValue, byteValue, doubleValue, floatValue, getResultFlags, intValue, isFixedLength, isFloat, longValue, setValue, shortValue
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, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail
SimpleFloat
public SimpleFloat()

Constructs a SimpleFloat object with a zero value.


SimpleFloat
public SimpleFloat(float value)
Constructs a SimpleFloat 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

value2Bits
protected long value2Bits()
Description copied from class: NumericArgument
Returns the value as bit representation.

Overrides:
value2Bits in class FloatArgument
Returns:
the numeric value represented by this object as bit representation.

bits2Value
protected void bits2Value(long bits)
Description copied from class: NumericArgument
Sets the value by its bit representation.

Overrides:
bits2Value in class FloatArgument
Parameters:
bits - value as bit representation
Home about services products contact login