|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.value.PrimSpec
|
+--org.abora.white.value.PrimIntegerSpec
| Field Summary | |
protected boolean |
amSigned
|
protected int |
myBitCount
|
protected IntegerValue |
myMax
|
protected IntegerValue |
myMin
|
static int |
UNLIMITED_BITS
|
| Fields inherited from class org.abora.white.value.PrimSpec |
arrayClass |
| Constructor Summary | |
protected |
PrimIntegerSpec(java.lang.Class arrayClass,
int bitCount,
boolean isSigned)
Construct a new specification for integer values. |
| Method Summary | |
int |
actualHashForEqual()
Defined by subclasses to produce the value returned by hashForEqual. |
PrimArray |
arrayFromBuffer(java.lang.Object buffer)
Make an array with the values at the given address |
int |
bitCount()
How many bits, or zero if it is unlimited |
boolean |
canHold(IntegerValue value)
Return true if this specification can hold the given value. |
PrimIntegerSpec |
combine(PrimIntegerSpec other)
Return a specification whose range of values contains the ranges of both this and other. |
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
isSigned()
Return true if this specifications values may be negative. |
PrimArray |
privateCopy(PrimArray array,
int size,
int start,
int count,
int offset)
Make a copy of an array with a different representation size. |
PrimIntegerArray |
string(java.lang.String string)
Make an array the contents of the string |
IntegerValue |
value(int number)
A boxed integer value |
| Methods inherited from class org.abora.white.value.PrimSpec |
array, array, arrayClass, arrayWith, arrayWithThree, arrayWithTwo, copy, copy, copy, copy, copy, copyGrow, iEEE, iEEE32, iEEE64, int16, int32, int64, int8, integerVar, pointer, sharedPointer, signedInteger, toHold, uInt16, uInt32, uInt8, unsignedInteger |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
destroy, destruct, equals, hashForEqual, printContentsOn, printOn, sendSelfTo, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int myBitCount
protected boolean amSigned
protected IntegerValue myMin
protected IntegerValue myMax
public static final int UNLIMITED_BITS
| Constructor Detail |
protected PrimIntegerSpec(java.lang.Class arrayClass,
int bitCount,
boolean isSigned)
arrayClass - the type of PrimArray used to hold values that
meet this specificationbitCount - isSigned - true if values can be negative and positive| Method Detail |
public int bitCount()
public boolean isSigned()
public PrimIntegerSpec combine(PrimIntegerSpec other)
this and other.
other - other range of values to containpublic int actualHashForEqual()
Heaper
actualHashForEqual in class PrimSpecpublic boolean canHold(IntegerValue value)
value.
value - integer value to test against.
value.public boolean isEqual(Heaper other)
Heaper
isEqual in class Heaperpublic PrimArray arrayFromBuffer(java.lang.Object buffer)
arrayFromBuffer in class PrimSpecbuffer - Java array containing elements meeting this specification.
public PrimIntegerArray string(java.lang.String string)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic IntegerValue value(int number)
public PrimArray privateCopy(PrimArray array,
int size,
int start,
int count,
int offset)
privateCopy in class PrimSpec
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||