Class LispClass
java.lang.Object
org.armedbear.lisp.LispObject
org.armedbear.lisp.StandardObject
org.armedbear.lisp.LispClass
- Direct Known Subclasses:
BuiltInClass, SlotClass
-
Field Summary
Fields inherited from class StandardObject
layout, slots -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LispObjectaddClass(Symbol symbol, LispObject c) static <T extends LispClass>
TclassOf()static LispObjectfindClass(LispObject name, boolean errorp) static LispClassgetCPL()final intgetName()getParts()Implementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject.final LispObjectbooleanstatic voidremoveClass(Symbol symbol) voidsetClassLayout(LispObject layout) voidsetCPL(LispObject... cpl) voidsetDirectMethods(LispObject methods) voidsetDirectSubclasses(LispObject directSubclasses) final voidsetDirectSuperclass(LispObject superclass) voidsetDirectSuperclasses(LispObject directSuperclasses) voidvoidsetFinalized(boolean b) voidsetName(LispObject name) final voidbooleansubclassp(LispObject obj) static booleansubclassp(LispObject cls, LispObject obj) final intsxhash()typeOf()typep(LispObject type) Methods inherited from class StandardObject
checkStandardObject, getInstanceSlotValue, getLispClass, printObject, setInstanceSlotValue, setSlotValue, SLOT_VALUEMethods inherited from class LispObject
ABS, add, add, aref, AREF, AREF, aref_long, 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, 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, nreverse, NTH, NTH, nthcdr, numberp, NUMBERP, NUMERATOR, oddp, ODDP, plusp, PLUSP, princToString, psxhash, psxhash, push, rationalp, RATIONALP, realp, REALP, resolve, reverse, RPLACA, RPLACD, SCHAR, setCallCount, setCar, setCdr, setDocumentation, setHotCount, setSlotValue, setSlotValue_0, setSlotValue_1, setSlotValue_2, setSlotValue_3, SIMPLE_STRING_P, STRING, stringp, STRINGP, subtract, subtract, SVREF, svset, SYMBOLP, truncate, unreadableString, unreadableString, VECTOR_PUSH_EXTEND, VECTOR_PUSH_EXTEND, vectorp, VECTORP, vectorPushExtend, zerop, ZEROP
-
Constructor Details
-
LispClass
-
LispClass
-
LispClass
-
LispClass
-
-
Method Details
-
addClass
-
addClass
-
removeClass
-
findClass
-
findClass
-
getParts
Description copied from class:LispObjectImplementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject. The protocol is to return a List of Cons pairs, where the car of each pair contains a decriptive string, and the cdr returns a subobject for inspection.- Overrides:
getPartsin classStandardObject
-
sxhash
public final int sxhash()- Overrides:
sxhashin classLispObject
-
getName
-
setName
-
getPropertyList
- Overrides:
getPropertyListin classLispObject
-
setPropertyList
- Overrides:
setPropertyListin classLispObject
-
getClassLayout
-
setClassLayout
-
getLayoutLength
public final int getLayoutLength() -
getDirectSuperclasses
-
setDirectSuperclasses
-
isFinalized
public boolean isFinalized() -
setFinalized
public void setFinalized(boolean b) -
setDirectSuperclass
-
getDirectSubclasses
-
setDirectSubclasses
-
getCPL
-
setCPL
-
getDirectMethods
-
setDirectMethods
-
getDocumentation
-
setDocumentation
-
typeOf
- Overrides:
typeOfin classStandardObject
-
classOf
- Overrides:
classOfin classStandardObject
-
typep
- Overrides:
typepin classStandardObject
-
subclassp
-
subclassp
-