Package org.armedbear.lisp
Class AbstractBitVector
- java.lang.Object
-
- org.armedbear.lisp.LispObject
-
- org.armedbear.lisp.AbstractArray
-
- org.armedbear.lisp.AbstractVector
-
- org.armedbear.lisp.AbstractBitVector
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ComplexBitVector
,SimpleBitVector
public abstract class AbstractBitVector extends AbstractVector
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractBitVector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
capacity()
LispObject
classOf()
protected abstract void
clearBit(int index)
boolean
equal(LispObject obj)
boolean
equalp(LispObject obj)
void
fill(LispObject obj)
protected abstract int
getBit(int index)
LispObject
getElementType()
int
hashCode()
java.lang.String
printObject()
LispObject
reverse()
protected abstract void
setBit(int index)
LispObject
subseq(int start, int end)
LispObject
typep(LispObject type)
-
Methods inherited from class org.armedbear.lisp.AbstractVector
adjustArray, adjustArray, adjustArray, adjustArray, badIndex, checkIndex, deleteEq, deleteEql, getDimension, getDimensions, getRank, getTotalSize, isSimpleVector, nreverse, psxhash, setFillPointer, setFillPointer, shrink, vectorp
-
Methods inherited from class org.armedbear.lisp.AbstractArray
arrayDisplacement, aset, computeTotalSize, get, getFillPointer, getRowMajorIndex, getRowMajorIndex, hasFillPointer, isAdjustable, isDisplaced, printObject, set
-
Methods inherited from class org.armedbear.lisp.LispObject
ABS, add, add, aref, AREF, AREF, aref_long, aset, aset, ash, ash, atom, ATOM, caddr, cadr, car, cddr, cdr, CHAR, characterp, CHARACTERP, chars, COMPLEXP, constantp, CONSTANTP, copyToArray, decr, DENOMINATOR, dispatch, divideBy, doubleValue, elt, endp, ENDP, EQ, eql, eql, eql, EQL, equal, EQUAL, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getParts, getPropertyList, getSlotValue, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValueAsBoolean, getStringChars, getStringValue, getSymbolFunction, getSymbolFunctionOrDie, getSymbolSetfFunction, getSymbolSetfFunctionOrDie, getSymbolValue, incr, incrementCallCount, incrementHotCount, integerp, INTEGERP, intValue, IS_E, IS_GE, IS_GT, IS_LE, IS_LT, IS_NE, isEqualTo, isEqualTo, isGreaterThan, isGreaterThan, isGreaterThanOrEqualTo, isGreaterThanOrEqualTo, isLessThan, isLessThan, isLessThanOrEqualTo, isLessThanOrEqualTo, isNotEqualTo, isNotEqualTo, isSpecialOperator, isSpecialVariable, javaInstance, javaInstance, LDB, length, LENGTH, listp, LISTP, lockableInstance, LOGAND, LOGAND, LOGIOR, LOGIOR, LOGNOT, LOGXOR, LOGXOR, longValue, minusp, MINUSP, MOD, MOD, multiplyBy, multiplyBy, negate, noFillPointer, NOT, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, princToString, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue, setSlotValue, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, SIMPLE_STRING_P, SLOT_VALUE, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, typeOf, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, VECTORP, vectorPushExtend, zerop, ZEROP
-
-
-
-
Field Detail
-
LONG_MASK
protected static final int LONG_MASK
- See Also:
- Constant Field Values
-
capacity
protected int capacity
-
bits
protected long[] bits
-
-
Method Detail
-
typep
public LispObject typep(LispObject type)
- Overrides:
typep
in classAbstractVector
-
classOf
public LispObject classOf()
- Overrides:
classOf
in classLispObject
-
capacity
public final int capacity()
- Specified by:
capacity
in classAbstractVector
-
getElementType
public final LispObject getElementType()
- Specified by:
getElementType
in classAbstractArray
-
equal
public boolean equal(LispObject obj)
- Overrides:
equal
in classLispObject
-
equalp
public boolean equalp(LispObject obj)
- Overrides:
equalp
in classAbstractVector
-
fill
public void fill(LispObject obj)
- Specified by:
fill
in classAbstractArray
-
subseq
public LispObject subseq(int start, int end)
- Specified by:
subseq
in classAbstractVector
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
printObject
public java.lang.String printObject()
- Overrides:
printObject
in classAbstractVector
-
reverse
public LispObject reverse()
- Specified by:
reverse
in classAbstractVector
-
getBit
protected abstract int getBit(int index)
-
setBit
protected abstract void setBit(int index)
-
clearBit
protected abstract void clearBit(int index)
-
-