public class StandardObject extends LispObject
Modifier and Type | Field and Description |
---|---|
private static Primitive |
_SET_STANDARD_INSTANCE_ACCESS |
private static Primitive |
_SET_STD_INSTANCE_LAYOUT |
protected Layout |
layout |
private static Primitive |
SET_STD_SLOT_VALUE |
protected LispObject[] |
slots |
private static Primitive |
STANDARD_INSTANCE_ACCESS |
private static Primitive |
STD_INSTANCE_CLASS |
private static Primitive |
STD_INSTANCE_LAYOUT |
private static Primitive |
STD_SLOT_BOUNDP |
private static Primitive |
STD_SLOT_VALUE |
private static Primitive |
SWAP_SLOTS |
Modifier | Constructor and Description |
---|---|
protected |
StandardObject() |
protected |
StandardObject(Layout layout) |
protected |
StandardObject(Layout layout,
int length) |
protected |
StandardObject(LispClass cls) |
protected |
StandardObject(LispClass cls,
int length) |
Modifier and Type | Method and Description |
---|---|
static StandardObject |
checkStandardObject(LispObject first) |
LispObject |
classOf() |
LispObject |
getInstanceSlotValue(LispObject slotName) |
LispObject |
getLispClass() |
LispObject |
getParts()
Implementing the getParts() protocol will allow INSPECT to
return information about the substructure of a descendent of
LispObject.
|
private LispObject |
helperGetClassName() |
private LispObject |
helperGetCPL() |
void |
setInstanceSlotValue(LispObject slotName,
LispObject newValue) |
void |
setSlotValue(LispObject slotName,
LispObject newValue) |
LispObject |
SLOT_VALUE(LispObject slotName) |
LispObject |
typeOf() |
LispObject |
typep(LispObject type) |
(package private) Layout |
updateLayout() |
String |
writeToString() |
ABS, add, add, aref_long, aref, AREF, AREF, aset, 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, EQUAL, equalp, equalp, evenp, EVENP, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, floatp, FLOATP, floatValue, getBooleanValue, getCallCount, getDescription, getDocumentation, getFixnumSlotValue, getHotCount, getInstance, getPropertyList, getSlotValue_0, getSlotValue_1, getSlotValue_2, getSlotValue_3, getSlotValue, 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, nreverse, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, psxhash, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setPropertyList, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, setSlotValue, SIMPLE_STRING_P, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, sxhash, SYMBOLP, truncate, unreadableString, unreadableString, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, zerop, ZEROP
protected Layout layout
protected LispObject[] slots
private static final Primitive SWAP_SLOTS
private static final Primitive STD_INSTANCE_LAYOUT
private static final Primitive _SET_STD_INSTANCE_LAYOUT
private static final Primitive STD_INSTANCE_CLASS
private static final Primitive STANDARD_INSTANCE_ACCESS
private static final Primitive _SET_STANDARD_INSTANCE_ACCESS
private static final Primitive STD_SLOT_BOUNDP
private static final Primitive STD_SLOT_VALUE
private static final Primitive SET_STD_SLOT_VALUE
protected StandardObject()
protected StandardObject(Layout layout)
protected StandardObject(Layout layout, int length)
protected StandardObject(LispClass cls, int length)
protected StandardObject(LispClass cls)
public LispObject getParts()
LispObject
getParts
in class LispObject
public final LispObject getLispClass()
private LispObject helperGetClassName()
private LispObject helperGetCPL()
public LispObject typeOf()
typeOf
in class LispObject
public LispObject classOf()
classOf
in class LispObject
public LispObject typep(LispObject type)
typep
in class LispObject
public String writeToString()
writeToString
in class LispObject
Layout updateLayout()
public LispObject getInstanceSlotValue(LispObject slotName)
public void setInstanceSlotValue(LispObject slotName, LispObject newValue)
public static final StandardObject checkStandardObject(LispObject first)
public LispObject SLOT_VALUE(LispObject slotName)
SLOT_VALUE
in class LispObject
public void setSlotValue(LispObject slotName, LispObject newValue)
setSlotValue
in class LispObject