Package gnu.kawa.lispexpr
Class ReaderXmlElement
- java.lang.Object
-
- gnu.kawa.lispexpr.ReadTableEntry
-
- gnu.kawa.lispexpr.ReaderMisc
-
- gnu.kawa.lispexpr.ReaderConstituent
-
- gnu.kawa.lispexpr.ReaderExtendedLiteral
-
- gnu.kawa.lispexpr.ReaderXmlElement
-
public class ReaderXmlElement extends ReaderExtendedLiteral
-
-
Field Summary
Fields Modifier and Type Field Description static Symbol
defaultElementNamespaceSymbol
-
Fields inherited from class gnu.kawa.lispexpr.ReaderExtendedLiteral
escapeChar
-
Fields inherited from class gnu.kawa.lispexpr.ReadTableEntry
ampersand, brace, constituent, illegal, multipleEscape, singleEscape, whitespace
-
-
Constructor Summary
Constructors Constructor Description ReaderXmlElement()
-
Method Summary
All Methods Static 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)
static Pair
quote(Object obj)
Object
read(Lexer in, int ch, int count)
Object
readElementConstructor(LispReader reader, int ch)
Parse ElementConstructor.Object
readQNameExpression(LispReader reader, int ch, boolean forElement)
Read either a QName literal or an enclosed QName-producing form.static int
skipSpace(LispReader reader, int ch)
-
Methods inherited from class gnu.kawa.lispexpr.ReaderExtendedLiteral
readContent, readEnclosed, readEnclosedExpressions, readEnclosedSingleExpression, readNamedLiteral, wrapText
-
Methods inherited from class gnu.kawa.lispexpr.ReaderMisc
getKind
-
Methods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getIllegalInstance, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance, read
-
-
-
-
Field Detail
-
defaultElementNamespaceSymbol
public static final Symbol defaultElementNamespaceSymbol
-
-
Method Detail
-
read
public Object read(Lexer in, int ch, int count) throws IOException, SyntaxException
- Overrides:
read
in classReaderExtendedLiteral
- Throws:
IOException
SyntaxException
-
readQNameExpression
public Object readQNameExpression(LispReader reader, int ch, boolean forElement) throws IOException, SyntaxException
Read either a QName literal or an enclosed QName-producing form. If literal, returns a quoted symbol, and the source literal in the non-empty token-buffer. If non-literal, tokenBufferLength is set to 0.- Throws:
IOException
SyntaxException
-
readElementConstructor
public Object readElementConstructor(LispReader reader, int ch) throws IOException, SyntaxException
Parse ElementConstructor. Assume initial'<'
has been processed, and we're read the next character. Reads through end of the end tag.- Throws:
IOException
SyntaxException
-
checkDelim
protected Object checkDelim(LispReader reader, int next, int delimiter) throws IOException, SyntaxException
- Overrides:
checkDelim
in classReaderExtendedLiteral
- Throws:
IOException
SyntaxException
-
isNestableStartDelim
protected boolean isNestableStartDelim(int next)
- Overrides:
isNestableStartDelim
in classReaderExtendedLiteral
-
isNestableEndDelim
protected boolean isNestableEndDelim(int next)
- Overrides:
isNestableEndDelim
in classReaderExtendedLiteral
-
skipSpace
public static int skipSpace(LispReader reader, int ch) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
enclosedExprDelim
protected int enclosedExprDelim(int ch, LispReader reader)
- Overrides:
enclosedExprDelim
in classReaderExtendedLiteral
-
-