Package gnu.kawa.lispexpr
Class ReaderExtendedLiteral
- java.lang.Object
-
- gnu.kawa.lispexpr.ReadTableEntry
-
- gnu.kawa.lispexpr.ReaderMisc
-
- gnu.kawa.lispexpr.ReaderConstituent
-
- gnu.kawa.lispexpr.ReaderExtendedLiteral
-
- Direct Known Subclasses:
ReaderXmlElement
public class ReaderExtendedLiteral extends ReaderConstituent
-
-
Field Summary
Fields Modifier and Type Field Description char
escapeChar
-
Fields inherited from class gnu.kawa.lispexpr.ReadTableEntry
ampersand, brace, constituent, illegal, multipleEscape, singleEscape, whitespace
-
-
Constructor Summary
Constructors Constructor Description ReaderExtendedLiteral()
ReaderExtendedLiteral(char escapeChar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
checkDelim(LispReader reader, int next, int delimiter)
protected int
enclosedExprDelim(int ch, LispReader reader)
protected boolean
isNestableEndDelim(int next)
protected boolean
isNestableStartDelim(int next)
Object
read(Lexer in, int ch, int count)
Pair
readContent(LispReader reader, char delimiter, Pair head)
protected Pair
readEnclosed(LispReader reader, ReadTable readTable, Pair last, int startDelimiter, int endDelimiter)
protected Pair
readEnclosedExpressions(LispReader reader, ReadTable readTable, Pair last, int endDelimiter)
Read expressions enclosed by '[' and ']'.protected Object
readEnclosedSingleExpression(LispReader reader, ReadTable readTable, int ch)
Object
readNamedLiteral(LispReader reader, ReadTable rtable, String tag, int next, int startLine, int startColumn)
protected Object
wrapText(String text)
-
Methods inherited from class gnu.kawa.lispexpr.ReaderMisc
getKind
-
Methods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getIllegalInstance, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance, read
-
-
-
-
Method Detail
-
read
public Object read(Lexer in, int ch, int count) throws IOException, SyntaxException
- Overrides:
read
in classReaderConstituent
- Throws:
IOException
SyntaxException
-
enclosedExprDelim
protected int enclosedExprDelim(int ch, LispReader reader)
-
readNamedLiteral
public Object readNamedLiteral(LispReader reader, ReadTable rtable, String tag, int next, int startLine, int startColumn) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
checkDelim
protected Object checkDelim(LispReader reader, int next, int delimiter) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
isNestableStartDelim
protected boolean isNestableStartDelim(int next)
-
isNestableEndDelim
protected boolean isNestableEndDelim(int next)
-
readContent
public Pair readContent(LispReader reader, char delimiter, Pair head) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
readEnclosedSingleExpression
protected Object readEnclosedSingleExpression(LispReader reader, ReadTable readTable, int ch) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
readEnclosed
protected Pair readEnclosed(LispReader reader, ReadTable readTable, Pair last, int startDelimiter, int endDelimiter) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
readEnclosedExpressions
protected Pair readEnclosedExpressions(LispReader reader, ReadTable readTable, Pair last, int endDelimiter) throws IOException, SyntaxException
Read expressions enclosed by '[' and ']'. Assume '[' has already been read.- Throws:
IOException
SyntaxException
-
-