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
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
readElementConstructor
(LispReader reader, int ch) Parse ElementConstructor.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 Details
-
defaultElementNamespaceSymbol
-
-
Constructor Details
-
ReaderXmlElement
public ReaderXmlElement()
-
-
Method Details
-
read
- Overrides:
read
in classReaderExtendedLiteral
- Throws:
IOException
SyntaxException
-
quote
-
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
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
- Throws:
IOException
SyntaxException
-
enclosedExprDelim
- Overrides:
enclosedExprDelim
in classReaderExtendedLiteral
-