j2native |
AnsiString |
Argument |
ArrayArgument |
ArrayType |
Bool |
Callback |
Char |
Const |
DelegatedArgument |
DoubleFloat |
FloatArgument |
FloatType |
Function |
FunctionExecutionException |
FunctionNotFoundException |
IllegalMemoryAccessException |
Int |
Int16 |
Int32 |
Int64 |
Int8 |
IntegerArgument |
IntegerType |
J2NativeContext |
Library |
LibraryLoader |
LibraryNotFoundException |
MemoryException |
NumericArgument |
NumericType |
OutOnly |
Pointer |
Pointer.Const |
Pointer.OutOnly |
Pointer.Void |
PointerArgument |
PointerType |
SimpleFloat |
StringType |
StructuralArgument |
Structure |
TypedPointer |
UInt |
UInt16 |
UInt32 |
UInt8 |
Union |
WideChar |
WideString |
ZeroTerminatedString |
| |
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.
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
|
|
|