|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jsdsi.sexp.Sexp | +--jsdsi.sexp.SexpList
A parenthesized list of S-expressions, where the first element is always a SexpString and is called the list's "type".
Sexp
,
SexpString
,
Serialized FormField Summary |
Fields inherited from class jsdsi.sexp.Sexp |
base64Digit, hexDigit |
Constructor Summary | |
(package private) |
SexpList()
|
|
SexpList(SexpString type,
Sexp[] expressions)
Creates a new list from a type string and an array of S-expressions. |
Method Summary | |
(package private) int |
getReadableLenImpl()
Returns the length of this S-expression as if it were printed on one line. |
java.lang.String |
getType()
Returns the type of this list. |
boolean |
isEmpty()
Returns true if this list is empty,
false otherwise. |
java.util.Iterator |
iterator()
Returns an iterator over this list. |
int |
size()
Returns the size of this list. |
void |
writeCanonical(java.io.OutputStream out)
Writes this S-expression to a byte stream in canonical form. |
void |
writeReadable(java.io.Writer out,
int offset,
int width,
int last)
Writes this S-expression to a character stream in readable form. |
Methods inherited from class jsdsi.sexp.Sexp |
decodeString, encodeString, getReadableLen, isBase64Digit, isDecimalDigit, isHexDigit, isTokenChar, isWhiteSpace, writeBase64, writeBase64, writeHex, writeHex, writeTransport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
SexpList()
public SexpList(SexpString type, Sexp[] expressions)
type
- the list type stringexpressions
- the elements of the listMethod Detail |
public java.lang.String getType()
public int size()
public java.util.Iterator iterator()
public boolean isEmpty()
this
list is empty,
false
otherwise.
public void writeCanonical(java.io.OutputStream out) throws java.io.IOException
Sexp
writeCanonical
in class Sexp
java.io.IOException
public void writeReadable(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
Sexp
writeReadable
in class Sexp
offset
- spaces indented from leftwidth
- total width of window, in characterslast
- spaces reserved on right (e.g., for closing parens)
java.io.IOException
int getReadableLenImpl()
Sexp
getReadableLenImpl
in class Sexp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |