com.cyc.tool.subl.jrtl.nativeCode.type.number
Class SubLIntegerBignum

java.lang.Object
  extended by java.lang.Number
      extended by com.cyc.tool.subl.jrtl.nativeCode.type.number.AbstractSubLNumber
          extended by com.cyc.tool.subl.jrtl.nativeCode.type.number.AbstractSubLInteger
              extended by com.cyc.tool.subl.jrtl.nativeCode.type.number.AbstractSubLIntegerBignum
                  extended by com.cyc.tool.subl.jrtl.nativeCode.type.number.SubLIntegerBignum
All Implemented Interfaces:
CommonSymbols, SubLObject, SubLBignum, SubLInteger, SubLNumber, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public final class SubLIntegerBignum
extends AbstractSubLIntegerBignum
implements SubLBignum, SubLNumber, SubLObject

See Also:
Serialized Form

Field Summary
static java.lang.String INTEGER_TYPE_NAME
           
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.number.SubLNumber
BIGINT_INTEGER, EIGHT_BYTE_INTEGER, FLOATING_POINT, FOUR_BYTE_INTEGER
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
DEFAULT_EXCEEDED_HASH_VALUE, DO_CHECK_TYPES, DO_PARANOID_TYPE_CHECKING, MAX_HASH_DEPTH, MAX_HASH_LENGTH
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.subLisp.CommonSymbols
ANSWER_TAG, APPEND_KEYWORD, APPEND_STACK_TRACES_TO_ERROR_MESSAGES, AREF, ASSEMBLE_FIXNUMS_TO_INTEGER, ATOM, BIGNUMP, BINARY_KEYWORD, BINDING_TYPE, BOOLEANP, CAAR, CADR, CAND, CAR, CCATCH, CDEC, CDESTRUCTURING_BIND, CDO, CDO_ALL_SYMBOLS, CDO_EXTERNAL_SYMBOLS, CDO_SYMBOLS, CDOHASH, CDOLIST, CDOTIMES, CDR, CHAR, CHAR_E_SYMBOL, CHAR_EQUAL_SYMBOL, CHAR_GREATER_THAN_OR_EQUAL_SYMBOL, CHAR_GREATER_THAN_SYMBOL, CHAR_GT_SYMBOL, CHAR_GTE_SYMBOL, CHAR_LESS_THAN_OR_EQUAL_SYMBOL, CHAR_LESS_THAN_SYMBOL, CHAR_LT_SYMBOL, CHAR_LTE_SYMBOL, CHAR_NE_SYMBOL, CHAR_NOT_EQUAL_SYMBOL, CHARACTERP, CHECK_TYPE, CINC, CLET, CMULTIPLE_VALUE_BIND, CNOT, CONS, CONSP, CONSTANT, COR, CPOP, CPROGV, CPUSH, CPUSHNEW, CREATE_KEYWORD, CSETF, CSETQ, CSOME, CTIME, CUNWIND_PROTECT, CVS_ID, DEBUG_IO, DECLAIM, DECLARE, DEFCONSTANT, DEFINE, DEFLEXICAL, DEFMACRO, DEFPARAMETER, DEFVAR, DIRECTION_KEYWORD, DYNAMIC, EIGHT_INTEGER, EIGHTEEN_INTEGER, ELEMENT_TYPE_KEYWORD, ELEVEN_INTEGER, END_KEYWORD, ENFORCE_MUST, ENFORCE_TYPE, EQ, EQL, EQUAL, EQUALP, ERROR, ERROR_KEYWORD, ERROR_OUTPUT, EVAL, EXTERNAL_FORMAT_KEYWORD, EXTERNAL_KEYWORD, FIF, FIFTEEN_INTEGER, FIRST, FIVE_INTEGER, FIXNUMP, FLOATP, FOUR_INTEGER, FOURTEEN_INTEGER, FUNCTION, FUNCTION_SPEC_P, FUNCTIONP, FUNLESS, FWHEN, GET, GETHASH, GETHASH_WITHOUT_VALUES, GUID_P, HASH_TABLE_ITERATOR_P, HASH_TABLE_P, IDENTITY, IF_DOES_NOT_EXIST_KEYWORD, IF_EXISTS_KEYWORD, IGNORE, INITIALIZATION_TYPE, INITIALIZER, INPUT_KEYWORD, INPUT_STREAM_P, INTEGERP, INTERNAL_KEYWORD, IO_KEYWORD, KEYWORDP, KILL_KEYWORD, LAMBDA_SYMBOL, LEXICAL, LIST, LISTP, LISTS, LOCK_P, LONG_BIGNUM_P, MACRO_ENV, MACRO_FORM, MEDIUM_BIGNUM_P, MEMBER, MINUS_ONE_INTEGER, MULTIPLE_VALUE_LIST, MUST, NCONC, NEW_VERSION_KEYWORD, NIL, NINE_INTEGER, NINETEEN_INTEGER, NREVERSE, NTH, NTH_VALUE, NULL, NULL_INPUT, NULL_OUTPUT, NUM_E_SYMBOL, NUM_GT_SYMBOL, NUM_GTE_SYMBOL, NUM_LT_SYMBOL, NUM_LTE_SYMBOL, NUM_NE_SYMBOL, NUMBERP, ONE_HUNDRED_THIRTY_SEVEN_INTEGER, ONE_HUNDRED_TWENTY_SEVEN_INTEGER, ONE_INTEGER, ONE_THOUSAND_INTEGER, OPTIONAL_SYMBOL, OTHERWISE, OUTPUT_KEYWORD, OUTPUT_STREAM_P, OVERWRITE_KEYWORD, PACKAGEP, PCASE, PCOND, PIF, PROBE_KEYWORD, PROCESS_TO_END, PROCESSP, PROCLAIM, PROGN, PUNLESS, PWHEN, QUERY_IO, QUIT, QUOTE, RENAME_AND_DELETE_KEYWORD, REST_SYMBOL, RET, RET_NIL, RET_T, RETURN_TAG, REVERSE, RW_LOCK_P, SECOND, SEQUENCEP, SEVEN_INTEGER, SEVENTEEN_INTEGER, SHORT_BIGNUM_P, SHOW_STACK_TRACES, SIX_INTEGER, SIXTEEN_INTEGER, SIXTY_FOUR_INTEGER, SORT, SSS, STANDARD_INPUT, STANDARD_OUTPUT, START_KEYWORD, STREAMP, STRING_E_SYMBOL, STRING_EQUAL_SYMBOL, STRING_GREATER_THAN_OR_EQUAL_SYMBOL, STRING_GREATER_THAN_SYMBOL, STRING_GT_SYMBOL, STRING_GTE_SYMBOL, STRING_LESS_THAN_OR_EQUAL_SYMBOL, STRING_LESS_THAN_SYMBOL, STRING_LT_SYMBOL, STRING_LTE_SYMBOL, STRING_NE_SYMBOL, STRING_NOT_EQUAL_SYMBOL, STRINGP, STRUCTURE_P, SUPERSEDE_KEYWORD, SUSPEND_TYPE_CHECKING, SYMBOL_FUNCTION, SYMBOL_VALUE, SYMBOLP, T, TEN_INTEGER, TERMINAL_IO, TEXT_KEYWORD, THIRTEEN_INTEGER, THIRTY_FOUR_INTEGER, THIRTY_THREE_INTEGER, THIRTY_TWO_INTEGER, THREE_INTEGER, TRACE_OUTPUT, TRUE, TWELVE_INTEGER, TWENTY_INTEGER, TWO_HUNDRED_FIFTY_FOUR_INTEGER, TWO_HUNDRED_FORTY_FOUR_INTEGER, TWO_INTEGER, UNDECLARED, UNPROVIDED, VALUES, VECTOR, VECTORP, WITH_ERROR_HANDLER, WITH_STATIC_AREA, WITH_THREAD_PRIVATE_AREA, WITH_WORKING_AREA, WORLD, ZERO_DOUBLE, ZERO_INTEGER
 
Method Summary
 SubLObject add(SubLObject num)
           
 boolean eql(SubLObject obj)
           
 boolean equal(SubLObject obj)
           
 boolean equalp(SubLObject obj)
           
 int getNumSize()
          Functions created to avoid casting
 SubLSymbol getType()
           
 SubLFixnum getTypeCode()
           
 boolean greaterThanInternal(SubLObject num)
          use this version only if the arg is of same numerical type or smaller type than 'this'
 boolean greaterThanOrEqualInternal(SubLObject num)
          use this version only if the arg is of same numerical type or smaller type than 'this'
 int hashCode(int currentDepth)
           
 boolean isAtom()
           
 boolean isBigIntegerBignum()
           
 boolean isBignum()
           
 boolean isBoolean()
           
 boolean isChar()
           
 boolean isCons()
           
 boolean isDouble()
           
 boolean isEnvironment()
           
 boolean isError()
           
 boolean isFixnum()
           
 boolean isFunction()
           
 boolean isFunctionSpec()
           
 boolean isGuid()
           
 boolean isHashtable()
           
 boolean isHashtableIterator()
           
 boolean isIntBignum()
           
 boolean isInteger()
           
 boolean isKeyhash()
           
 boolean isKeyhashIterator()
           
 boolean isKeyword()
           
 boolean isList()
           
 boolean isLock()
           
 boolean isLongBignum()
           
 boolean isMacroOperator()
           
 boolean isNil()
           
 boolean isNumber()
           
 boolean isPackage()
           
 boolean isProcess()
           
 boolean isReadWriteLock()
           
 boolean isRegexPattern()
           
 boolean isSemaphore()
           
 boolean isSequence()
           
 boolean isStream()
           
 boolean isString()
           
 boolean isStructure()
           
 boolean isSymbol()
           
 boolean isVector()
           
 boolean lessThanInternal(SubLObject num)
          use this version only if the arg is of same numerical type or smaller type than 'this'
 boolean lessThanOrEqualInternal(SubLObject num)
          use this version only if the arg is of same numerical type or smaller type than 'this'
 boolean numericallyEqualInternal(SubLObject num)
          use this version only if the arg is of same numerical type or smaller type than 'this'
 SubLObject sub(SubLObject num)
           
 SubLFixnum toFixnum()
          Method created to avoid casting
 java.lang.String toTypeName()
           
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.number.AbstractSubLIntegerBignum
abs, dec, doubleValue, floatValue, getInteger, getNativeNumber, inc, integerDivide, integerDivide, intValue, isEven, isNegative, isOdd, isPositive, isZero, longValue, mult, toString
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.number.AbstractSubLInteger
and, ceiling, floor, greatestCommonDivisor, integerLength, leastCommonMultiple, nand, nor, not, or, random, round, toDouble, toInteger, truncate, xnor, xor
 
Methods inherited from class com.cyc.tool.subl.jrtl.nativeCode.type.number.AbstractSubLNumber
add, addKey, arcCosine, arcSine, arcTangent, asArrayList, asConsList, bigIntegerValue, bind, canFastHash, charValue, checkType, checkTypeInternal, clone, compareTo, cosine, currentBinding, decrement, decrement, divide, eighth, enforceType, enforceTypeInternal, equals, eval, fceiling, ffloor, fifth, first, fourth, fround, ftruncate, get, get, getCharacter, getField, getField0, getField1, getField10, getField11, getField12, getField13, getField14, getField15, getField16, getField17, getField18, getField19, getField2, getField20, getField3, getField4, getField5, getField6, getField7, getField8, getField9, getFileDesignator, getFunc, getStream, getString, hashCode, hasKey, hyperbolicArcCosine, hyperbolicArcSine, hyperbolicArcTangent, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, increment, increment, isArrayBased, last, log, log, makeCopy, makeDeepCopy, max, min, mod, multiply, ninth, nthCdr, numE, numG, numGE, numL, numLE, pow, put, rebind, remainder, remKey, remove, rest, reverse, second, set, setField, setField0, setField1, setField10, setField11, setField12, setField13, setField14, setField15, setField16, setField17, setField18, setField19, setField2, setField20, setField3, setField4, setField5, setField6, setField7, setField8, setField9, setFirst, setRest, seventh, sigNum, sine, sixth, size, sqrt, subtract, superHash, tangent, tenth, third, toChar, toCons, toEnv, toGuid, toHashtable, toHashtableIterator, toInputBinaryStream, toInputStream, toInputTextStream, toKeyhash, toKeyhashIterator, toList, toLock, toMacro, toNumber, toOutputBinaryStream, toOutputStream, toOutputTextStream, toPackage, toProcess, toReadWriteLock, toRegexPattern, toSemaphore, toSeq, toStr, toStruct, toSymbol, toVect
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.number.SubLInteger
and, greatestCommonDivisor, integerDivide, integerLength, isEven, isOdd, leastCommonMultiple, nand, nor, not, or, random, xnor, xor
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.number.SubLNumber
abs, add, arcCosine, arcSine, arcTangent, bigIntegerValue, ceiling, cosine, decrement, decrement, divide, doubleValue, fceiling, ffloor, floatValue, floor, fround, ftruncate, getNativeNumber, hyperbolicArcCosine, hyperbolicArcSine, hyperbolicArcTangent, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, increment, increment, intValue, isNegative, isPositive, isZero, log, log, longValue, max, min, mod, multiply, numE, numG, numGE, numL, numLE, pow, remainder, round, sigNum, sine, sqrt, subtract, tangent, truncate
 
Methods inherited from interface com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject
addKey, asArrayList, asConsList, bind, canFastHash, charValue, checkType, checkTypeInternal, clone, currentBinding, dec, eighth, enforceType, enforceTypeInternal, eval, fifth, first, fourth, get, get, getCharacter, getField, getField0, getField1, getField10, getField11, getField12, getField13, getField14, getField15, getField16, getField17, getField18, getField19, getField2, getField20, getField3, getField4, getField5, getField6, getField7, getField8, getField9, getFileDesignator, getFunc, getStream, getString, hasKey, inc, isArrayBased, last, makeCopy, makeDeepCopy, mult, ninth, nthCdr, put, rebind, remKey, remove, rest, reverse, second, set, setField, setField0, setField1, setField10, setField11, setField12, setField13, setField14, setField15, setField16, setField17, setField18, setField19, setField2, setField20, setField3, setField4, setField5, setField6, setField7, setField8, setField9, setFirst, setRest, seventh, sixth, size, superHash, tenth, third, toChar, toCons, toDouble, toEnv, toGuid, toHashtable, toHashtableIterator, toInputBinaryStream, toInputStream, toInputTextStream, toInteger, toKeyhash, toKeyhashIterator, toList, toLock, toMacro, toNumber, toOutputBinaryStream, toOutputStream, toOutputTextStream, toPackage, toProcess, toReadWriteLock, toRegexPattern, toSemaphore, toSeq, toStr, toStruct, toSymbol, toVect
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

INTEGER_TYPE_NAME

public static final java.lang.String INTEGER_TYPE_NAME
See Also:
Constant Field Values
Method Detail

getNumSize

public final int getNumSize()
Description copied from interface: SubLObject
Functions created to avoid casting

Specified by:
getNumSize in interface SubLObject
Specified by:
getNumSize in interface SubLNumber

add

public final SubLObject add(SubLObject num)
Specified by:
add in interface SubLObject

sub

public final SubLObject sub(SubLObject num)
Specified by:
sub in interface SubLObject

toTypeName

public final java.lang.String toTypeName()
Specified by:
toTypeName in interface SubLObject

eql

public final boolean eql(SubLObject obj)
Specified by:
eql in interface SubLObject
Overrides:
eql in class AbstractSubLNumber

equal

public final boolean equal(SubLObject obj)
Specified by:
equal in interface SubLObject

equalp

public final boolean equalp(SubLObject obj)
Specified by:
equalp in interface SubLObject

hashCode

public final int hashCode(int currentDepth)
Specified by:
hashCode in interface SubLObject
Overrides:
hashCode in class AbstractSubLNumber

numericallyEqualInternal

public final boolean numericallyEqualInternal(SubLObject num)
use this version only if the arg is of same numerical type or smaller type than 'this'

Specified by:
numericallyEqualInternal in interface SubLNumber

lessThanInternal

public final boolean lessThanInternal(SubLObject num)
use this version only if the arg is of same numerical type or smaller type than 'this'

Specified by:
lessThanInternal in interface SubLNumber

lessThanOrEqualInternal

public final boolean lessThanOrEqualInternal(SubLObject num)
use this version only if the arg is of same numerical type or smaller type than 'this'

Specified by:
lessThanOrEqualInternal in interface SubLNumber

greaterThanInternal

public final boolean greaterThanInternal(SubLObject num)
use this version only if the arg is of same numerical type or smaller type than 'this'

Specified by:
greaterThanInternal in interface SubLNumber

greaterThanOrEqualInternal

public final boolean greaterThanOrEqualInternal(SubLObject num)
use this version only if the arg is of same numerical type or smaller type than 'this'

Specified by:
greaterThanOrEqualInternal in interface SubLNumber

getType

public final SubLSymbol getType()
Specified by:
getType in interface SubLObject

getTypeCode

public final SubLFixnum getTypeCode()
Specified by:
getTypeCode in interface SubLObject

toFixnum

public final SubLFixnum toFixnum()
Method created to avoid casting

Specified by:
toFixnum in interface SubLObject

isNil

public final boolean isNil()
Specified by:
isNil in interface SubLObject

isBoolean

public final boolean isBoolean()
Specified by:
isBoolean in interface SubLObject

isSymbol

public final boolean isSymbol()
Specified by:
isSymbol in interface SubLObject

isKeyword

public final boolean isKeyword()
Specified by:
isKeyword in interface SubLObject

isAtom

public final boolean isAtom()
Specified by:
isAtom in interface SubLObject

isCons

public final boolean isCons()
Specified by:
isCons in interface SubLObject

isList

public final boolean isList()
Specified by:
isList in interface SubLObject

isSequence

public final boolean isSequence()
Specified by:
isSequence in interface SubLObject

isNumber

public final boolean isNumber()
Specified by:
isNumber in interface SubLObject

isFixnum

public final boolean isFixnum()
Specified by:
isFixnum in interface SubLObject

isBignum

public final boolean isBignum()
Specified by:
isBignum in interface SubLObject

isIntBignum

public final boolean isIntBignum()
Specified by:
isIntBignum in interface SubLObject

isLongBignum

public final boolean isLongBignum()
Specified by:
isLongBignum in interface SubLObject

isBigIntegerBignum

public final boolean isBigIntegerBignum()
Specified by:
isBigIntegerBignum in interface SubLObject

isInteger

public final boolean isInteger()
Specified by:
isInteger in interface SubLObject

isDouble

public final boolean isDouble()
Specified by:
isDouble in interface SubLObject

isChar

public final boolean isChar()
Specified by:
isChar in interface SubLObject

isString

public final boolean isString()
Specified by:
isString in interface SubLObject

isVector

public final boolean isVector()
Specified by:
isVector in interface SubLObject

isFunction

public final boolean isFunction()
Specified by:
isFunction in interface SubLObject

isFunctionSpec

public final boolean isFunctionSpec()
Specified by:
isFunctionSpec in interface SubLObject

isMacroOperator

public final boolean isMacroOperator()
Specified by:
isMacroOperator in interface SubLObject

isHashtable

public final boolean isHashtable()
Specified by:
isHashtable in interface SubLObject

isProcess

public final boolean isProcess()
Specified by:
isProcess in interface SubLObject

isLock

public final boolean isLock()
Specified by:
isLock in interface SubLObject

isReadWriteLock

public final boolean isReadWriteLock()
Specified by:
isReadWriteLock in interface SubLObject

isStructure

public final boolean isStructure()
Specified by:
isStructure in interface SubLObject

isStream

public final boolean isStream()
Specified by:
isStream in interface SubLObject

isPackage

public final boolean isPackage()
Specified by:
isPackage in interface SubLObject

isError

public final boolean isError()
Specified by:
isError in interface SubLObject

isGuid

public final boolean isGuid()
Specified by:
isGuid in interface SubLObject

isSemaphore

public final boolean isSemaphore()
Specified by:
isSemaphore in interface SubLObject

isEnvironment

public final boolean isEnvironment()
Specified by:
isEnvironment in interface SubLObject

isHashtableIterator

public final boolean isHashtableIterator()
Specified by:
isHashtableIterator in interface SubLObject

isRegexPattern

public final boolean isRegexPattern()
Specified by:
isRegexPattern in interface SubLObject

isKeyhash

public final boolean isKeyhash()
Specified by:
isKeyhash in interface SubLObject

isKeyhashIterator

public final boolean isKeyhashIterator()
Specified by:
isKeyhashIterator in interface SubLObject