|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.LispBlob
public class LispBlob
Provides simple API for dealing with lisp code in a string and enables us to readily break the lists down into items.
Field Summary | |
---|---|
private java.util.ArrayList |
alChildren
|
private static boolean |
DEBUG_PARSER
|
private java.lang.String |
strText
|
Constructor Summary | |
---|---|
LispBlob(java.lang.String lispString)
Initialize a lisp blob from a given string, so we can process the list and/or it's children. |
Method Summary | |
---|---|
private void |
clearDOM()
Clear the DOM ready for a re-parsing |
java.util.Iterator |
getIterator()
Get an iterator over our children |
java.lang.String |
getText()
Get the text this blob is comprised of |
boolean |
hasChildren()
Does this blob have list items? |
boolean |
isList()
Is this instance a list? |
void |
setText(java.lang.String strNewText)
Set the text this blob is comprised of. |
static java.lang.String |
stripComments(java.lang.String lisp)
Remove the comments from a lisp string. |
static java.lang.String |
stripWhiteSpace(java.lang.String lisp)
Remove redundant whitespace from a lisp string. |
java.util.ArrayList |
toList()
Convert this list to an arraylist |
private void |
updateDOM()
Update the child lists or the node text for this lisp string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static boolean DEBUG_PARSER
private java.lang.String strText
private java.util.ArrayList alChildren
Constructor Detail |
---|
public LispBlob(java.lang.String lispString)
lispString
- Lisp code in string formMethod Detail |
---|
public java.util.Iterator getIterator()
public boolean isList()
public java.lang.String getText()
public void setText(java.lang.String strNewText)
strNewText
- public boolean hasChildren()
private void clearDOM()
private void updateDOM()
public static java.lang.String stripComments(java.lang.String lisp)
public static java.lang.String stripWhiteSpace(java.lang.String lisp)
public java.util.ArrayList toList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |