org.abora.gold.x
Class PrimIntegerSpec

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.x.PrimSpec
                    |
                    +--org.abora.gold.x.PrimIntegerSpec

public class PrimIntegerSpec
extends PrimSpec


Field Summary
protected  boolean amSigned
           
protected  int myBitCount
           
protected  int myMax
           
protected  int myMin
           
 
Fields inherited from class org.abora.gold.x.PrimSpec
myClass, TheIEEE32Spec, TheIEEE64Spec, TheInt32Spec, TheIntegerVarSpec, ThePtrSpec, TheSharedPtrSpec, TheUInt32Spec, TheUInt8Spec
 
Fields inherited from class org.abora.gold.xpp.basic.Heaper
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes
 
Fields inherited from class org.abora.gold.java.AboraHeaper
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag
 
Constructor Summary
PrimIntegerSpec(Category primClass, int bitCount, boolean isSigned)
           
PrimIntegerSpec(Rcvr receiver)
           
 
Method Summary
 int actualHashForEqual()
           
 PrimArray array(int count)
          Make an array initialized to zero values
 PrimArray arrayFromBuffer(int count, VoidStar buffer)
          Make an array with the values at the given address
 int bitCount()
          How many bits, or zero if it is unlimited
 boolean canHold(IntegerVar value)
          Whether this spec can hold the given value
 PrimIntegerSpec combine(PrimIntegerSpec other)
          A spec whose range of values contains both ranges
static void info()
          {BooleanVar CLIENT} isSigned
{Int32 CLIENT} precision
{PrimIntegerArray CLIENT} string: string {char star}
{PrimInteger CLIENT} value: number {IntegerVar}
 boolean isEqual(Heaper other)
          Return true if the two objects are equal.
 boolean isSigned()
          Whether it allows negative values
 int precision()
           
 PrimArray privateCopy(PrimArray array, int size, int start, int count, int offset)
          Make a copy of an array with a different representation size.
 void sendSelfTo(Xmtr xmtr)
          do nothing
 PrimIntegerArray string(java.lang.String string)
          Make an array the contents of the string
 PrimIntValue value(IntegerVar number)
          A boxed integer value
 
Methods inherited from class org.abora.gold.x.PrimSpec
array, arrayClass, arrayWith, arrayWithThree, arrayWithTwo, copy, copy, copy, copy, copy, copyGrow, iEEE, iEEE32, iEEE64, initSpecs, initTimeNonInherited, int32, integerVar, linkTimeNonInherited, pointer, sharedPointer, signedInteger, sizeofElement, toHold, uInt32, uInt8, unsignedInteger
 
Methods inherited from class org.abora.gold.xpp.basic.Heaper
abstractDeclarationFor, abstractTypeFor, addMethodAttributeToInOf, addPackage, addPackageCategory, allClientProtocolOn, argumentTypesFor, arrow, blast, blast, BLAST, cachePromiseNameTable, cachePromiseNameTableIn, canYouBecome, cast, cleanPromiseClasses, cleanupGarbage, clientClassesDo, clientFunctionsOn, clientMethodsOn, clientProtocol, clientProtocolDo, clientProtocolOn, clientProtocolOn, collectibleClasses, compare, compileClientSubclasses, compileConstantPromiseMethods, compileCreateFromRcvr, compileEQ, compileGeneratedClassMethod, compileGeneratedMethod, compileHook, compilePromise, compilePromiseDefaultMethods, compilePromiseFluidDeclarations, compilePromiseHandlers, compilePromiseMethods, compileRequestCreateMsgInArguments, compileRequestEvaluateMsgInReturningArguments, compileRPCSpecialistEvaluateMsgForReturningArguments, compileSendSelfTo, compileSendSelfToSendHook, compileStubbleMethods, compileSubclassStubbleMethods, computeMangle, computePreorder, constantTypeValue, convert, convertCopyDeclarations, convertDeferredDeclarations, convertProxyDeclarations, convertSubclassCopyDeclarations, convertSubclassDeferredDeclarations, convertSubclassProxyDeclarations, copyReferencesToType, create, create, create, create, create, create, create, create, create, create, createRequestClassArguments, definesProxyMethods, delete, deref, destroy, destruct, destructor, enum, enumFlags, equals, exportName, fetchAttribute, fetchPackage, fetchSuperCategory, fileOutClientProtocol, findCategory, findSenderAndReceiverMethods, findTailInto, flushPromiseNameTable, foo, freezeClientClasses, freezeClientProtocol, freezeStProtocol, frozenClasses, garbageCollect, garbageCollectFrom, gcOpportunity, gcOpportunity, generatedCategory, generatePromiseNames, getCategory, getOrMakePackage, getSuperCategory, handlerSignaturesFrom, hash, hashForEqual, hasProxyMethods, info_clientClasses, info_clientSideClasses, info_promiseClasses, info_stProtocol, inGC, initializedClasses, initializingClasses, initPackages, initStringHashSBoxes, inspectPieces, instanceSize, IntegerVar, isByProxy, isConstructed, isDestructed, isEqualOrSubclassOf, isGenerated, isIntType, isKindOf, isRawType, isUnlocked, make, makeClassTable, makeFillTable, makeRequestTable, mangle, markChildren, markCount, markInstances, mayBecome, mayBecomeAnySubclassOf, new1, newX, nonCopyVariables, notWorking, pack, packageClasses, packagingCategory, parseExportName, passe, pointerToStaticMember, pointerToStaticMember, pointerToVirtualMember, preorderMax, preorderNumber, printOn, PROBLEM, problems, promiseClass, promiseDefaultValue, promiseName, promiseNameTable, promiseToAbstract, registerPackageCategory, removeGeneratedCode, removeStubbleMethods, removeSubclassGeneratedCode, removeSubclassStubbleMethods, requestProcedure, requestProceduresFrom, returnTypeFor, rootName, scheduleTermination, sendProxyTo, serverNameFor, setGC, signal, signals, smalltalkSelector, stClientProtocol, stubbleSelectorTokenReturnsArguments, subclassNonCopyVariables, takeOop, togglePromiseName, togglePromiseOfParse, unimplemented, unmangle, verifyFreeze, wipeStubble
 
Methods inherited from class org.abora.gold.java.AboraHeaper
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myBitCount

protected int myBitCount

amSigned

protected boolean amSigned

myMin

protected int myMin

myMax

protected int myMax
Constructor Detail

PrimIntegerSpec

public PrimIntegerSpec(Category primClass,
                       int bitCount,
                       boolean isSigned)

PrimIntegerSpec

public PrimIntegerSpec(Rcvr receiver)
Method Detail

bitCount

public int bitCount()
How many bits, or zero if it is unlimited


combine

public PrimIntegerSpec combine(PrimIntegerSpec other)
A spec whose range of values contains both ranges


isSigned

public boolean isSigned()
Whether it allows negative values


actualHashForEqual

public int actualHashForEqual()
Overrides:
actualHashForEqual in class PrimSpec

canHold

public boolean canHold(IntegerVar value)
Whether this spec can hold the given value


isEqual

public boolean isEqual(Heaper other)
Description copied from class: Heaper
Return true if the two objects are equal.

Overrides:
isEqual in class Heaper

array

public PrimArray array(int count)
Make an array initialized to zero values

Overrides:
array in class PrimSpec

arrayFromBuffer

public PrimArray arrayFromBuffer(int count,
                                 VoidStar buffer)
Make an array with the values at the given address

Overrides:
arrayFromBuffer in class PrimSpec

string

public PrimIntegerArray string(java.lang.String string)
Make an array the contents of the string


value

public PrimIntValue value(IntegerVar number)
A boxed integer value


privateCopy

public PrimArray privateCopy(PrimArray array,
                             int size,
                             int start,
                             int count,
                             int offset)
Make a copy of an array with a different representation size. The arguments are the same
as in PrimArray::copy.

Overrides:
privateCopy in class PrimSpec

precision

public int precision()

sendSelfTo

public void sendSelfTo(Xmtr xmtr)
Description copied from class: Heaper
do nothing

Overrides:
sendSelfTo in class PrimSpec

info

public static void info()
{BooleanVar CLIENT} isSigned
{Int32 CLIENT} precision
{PrimIntegerArray CLIENT} string: string {char star}
{PrimInteger CLIENT} value: number {IntegerVar}



Translation - Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.