Class LispObject

    • Constructor Detail

      • LispObject

        public LispObject()
    • Method Detail

      • resolve

        public LispObject resolve()
        Function to allow objects to return the value "they stand for". Used by AutoloadedFunctionProxy to return the function it is proxying.
      • getInstance

        public static LispObject getInstance​(boolean b)
      • getDescription

        public LispObject getDescription()
      • getParts

        public LispObject getParts()
        Implementing 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.
      • getBooleanValue

        public boolean getBooleanValue()
      • constantp

        public boolean constantp()
      • atom

        public boolean atom()
      • javaInstance

        public java.lang.Object javaInstance()
      • javaInstance

        public java.lang.Object javaInstance​(java.lang.Class<?> c)
      • lockableInstance

        public java.lang.Object lockableInstance()
        This method returns 'this' by default, but allows objects to return different values to increase Java interoperability
        Returns:
        An object to be used with synchronized, wait, notify, etc
      • setCar

        public final void setCar​(LispObject obj)
      • setCdr

        public final void setCdr​(LispObject obj)
      • nthcdr

        public final LispObject nthcdr​(int n)
      • eql

        public boolean eql​(char c)
      • eql

        public boolean eql​(int n)
      • equal

        public boolean equal​(int n)
      • equal

        public boolean equal​(LispObject obj)
      • equalp

        public boolean equalp​(int n)
      • equalp

        public boolean equalp​(LispObject obj)
      • evenp

        public boolean evenp()
      • oddp

        public boolean oddp()
      • plusp

        public boolean plusp()
      • minusp

        public boolean minusp()
      • numberp

        public boolean numberp()
      • zerop

        public boolean zerop()
      • floatp

        public boolean floatp()
      • integerp

        public boolean integerp()
      • rationalp

        public boolean rationalp()
      • realp

        public boolean realp()
      • stringp

        public boolean stringp()
      • SIMPLE_STRING_P

        public LispObject SIMPLE_STRING_P()
      • vectorp

        public boolean vectorp()
      • CHARACTERP

        public final LispObject CHARACTERP()
      • characterp

        public boolean characterp()
      • length

        public int length()
      • aref_long

        public long aref_long​(int index)
      • aref

        public int aref​(int index)
      • aset

        public void aset​(int index,
                         int n)
      • aset

        public void aset​(int index,
                         LispObject newValue)
      • svset

        public void svset​(int index,
                          LispObject newValue)
      • vectorPushExtend

        public void vectorPushExtend​(LispObject element)
      • noFillPointer

        public final LispObject noFillPointer()
      • listp

        public final boolean listp()
      • endp

        public final boolean endp()
      • isSpecialOperator

        public boolean isSpecialOperator()
      • isSpecialVariable

        public boolean isSpecialVariable()
      • setDocumentation

        public void setDocumentation​(LispObject docType,
                                     LispObject documentation)
      • getPropertyList

        public LispObject getPropertyList()
      • setPropertyList

        public void setPropertyList​(LispObject obj)
      • getSymbolValue

        public LispObject getSymbolValue()
      • getSymbolFunction

        public LispObject getSymbolFunction()
      • getSymbolFunctionOrDie

        public LispObject getSymbolFunctionOrDie()
      • getSymbolSetfFunction

        public LispObject getSymbolSetfFunction()
      • getSymbolSetfFunctionOrDie

        public LispObject getSymbolSetfFunctionOrDie()
      • princToString

        public java.lang.String princToString()
        PRINC-TO-STRING function to be used with Java objects
        Returns:
        A string in human-readable format, as per PRINC definition
      • printObject

        public java.lang.String printObject()
      • unreadableString

        public final java.lang.String unreadableString​(java.lang.String s)
        Calls unreadableString(String s, boolean identity) with a default identity value of 'true'. This function is a helper for printObject()
        Parameters:
        s - String representation of this object.
        Returns:
        String enclosed in the non-readable #< ... > markers
      • unreadableString

        public final java.lang.String unreadableString​(java.lang.String s,
                                                       boolean identity)
        Creates a non-readably (as per CLHS terminology) representation of the 'this' object, using string 's'. If the current value of the variable *PRINT-READABLY* is T, a Lisp error is thrown and no value is returned. This function is a helper for printObject()
        Parameters:
        s -
        identity - when 'true', includes Java's identityHash for the object in the output.
        Returns:
        a non reabable string (i.e. one enclosed in the #< > markers)
      • intValue

        public int intValue()
      • longValue

        public long longValue()
      • floatValue

        public float floatValue()
      • doubleValue

        public double doubleValue()
      • subtract

        public LispObject subtract​(int n)
      • multiplyBy

        public LispObject multiplyBy​(int n)
      • isEqualTo

        public boolean isEqualTo​(int n)
      • isEqualTo

        public boolean isEqualTo​(LispObject obj)
      • isNotEqualTo

        public boolean isNotEqualTo​(int n)
      • isNotEqualTo

        public boolean isNotEqualTo​(LispObject obj)
      • isLessThan

        public boolean isLessThan​(int n)
      • isLessThan

        public boolean isLessThan​(LispObject obj)
      • isGreaterThan

        public boolean isGreaterThan​(int n)
      • isGreaterThan

        public boolean isGreaterThan​(LispObject obj)
      • isLessThanOrEqualTo

        public boolean isLessThanOrEqualTo​(int n)
      • isLessThanOrEqualTo

        public boolean isLessThanOrEqualTo​(LispObject obj)
      • isGreaterThanOrEqualTo

        public boolean isGreaterThanOrEqualTo​(int n)
      • isGreaterThanOrEqualTo

        public boolean isGreaterThanOrEqualTo​(LispObject obj)
      • LDB

        public LispObject LDB​(int size,
                              int position)
      • sxhash

        public int sxhash()
      • psxhash

        public int psxhash()
      • psxhash

        public int psxhash​(int depth)
      • chars

        public char[] chars()
      • getStringChars

        public char[] getStringChars()
      • getStringValue

        public java.lang.String getStringValue()
        Returns a string representing the value of a 'string designator', if the instance is one. Throws an error if the instance isn't a string designator.
      • getSlotValue_0

        public LispObject getSlotValue_0()
      • getSlotValue_1

        public LispObject getSlotValue_1()
      • getSlotValue_2

        public LispObject getSlotValue_2()
      • getSlotValue_3

        public LispObject getSlotValue_3()
      • getSlotValue

        public LispObject getSlotValue​(int index)
      • getFixnumSlotValue

        public int getFixnumSlotValue​(int index)
      • getSlotValueAsBoolean

        public boolean getSlotValueAsBoolean​(int index)
      • setSlotValue_0

        public void setSlotValue_0​(LispObject value)
      • setSlotValue_1

        public void setSlotValue_1​(LispObject value)
      • setSlotValue_2

        public void setSlotValue_2​(LispObject value)
      • setSlotValue_3

        public void setSlotValue_3​(LispObject value)
      • setSlotValue

        public void setSlotValue​(int index,
                                 LispObject value)
      • getCallCount

        public int getCallCount()
      • setCallCount

        public void setCallCount​(int n)
      • incrementCallCount

        public void incrementCallCount()
      • getHotCount

        public int getHotCount()
      • setHotCount

        public void setHotCount​(int n)
      • incrementHotCount

        public void incrementHotCount()