|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectescjava.prover.SExp
escjava.prover.SList
escjava.prover.SNil
The single SNil
instance represents the empty list of
SExp
s.
Field Summary | |
private static SNil |
single
The single instance of this class, or null if it
has not yet been allocated. |
Constructor Summary | |
private |
SNil()
Instance creation is private so we can ensure that at most one instance of this class is ever created. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
static SNil |
getNil()
|
boolean |
isEmpty()
|
int |
length()
|
Methods inherited from class escjava.prover.SList |
addEnd, addFront, append, at, fromArray, getList, getPair, isList, main, make, make, make, make, make, make, make, make, make, prettyPrint, print, reverseD, setAt |
Methods inherited from class escjava.prover.SExp |
display, fancyMake, getAtom, getInteger, isAtom, isInteger, make, print, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static SNil single
null
if it
has not yet been allocated.
Constructor Detail |
private SNil()
Method Detail |
public static SNil getNil()
public boolean equals(java.lang.Object o)
public boolean isEmpty()
isEmpty
in class SList
true
since we are the nil instance.public int length()
length
in class SList
|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |