ix.util.lisp
Class Symbol

java.lang.Object
  |
  +--ix.util.lisp.Symbol
All Implemented Interfaces:
java.lang.Comparable, LispObject, java.io.Serializable
Direct Known Subclasses:
ItemVar, Keyword

public class Symbol
extends java.lang.Object
implements LispObject, java.lang.Comparable, java.io.Serializable

The root class for Lisp symbols.

The correct way to create a new symbol is to call Symbol.intern(String name). It will return an instance of Symbol or of an appropriate subclass, depending on the first character of the name.

See Also:
Serialized Form

Field Summary
 java.lang.String name
           
protected static java.util.Hashtable obTable
           
 
Constructor Summary
protected Symbol(java.lang.String name)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
static Symbol intern(java.lang.String s)
           
protected  java.lang.Object readResolve()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

obTable

protected static java.util.Hashtable obTable

name

public java.lang.String name
Constructor Detail

Symbol

protected Symbol(java.lang.String name)
Method Detail

intern

public static Symbol intern(java.lang.String s)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object