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 SymboldefaultElementNamespaceSymbol-
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 ObjectcheckDelim(LispReader reader, int next, int delimiter)protected intenclosedExprDelim(int ch, LispReader reader)protected booleanisNestableEndDelim(int next)protected booleanisNestableStartDelim(int next)static Pairquote(Object obj)Objectread(Lexer in, int ch, int count)ObjectreadElementConstructor(LispReader reader, int ch)Parse ElementConstructor.ObjectreadQNameExpression(LispReader reader, int ch, boolean forElement)Read either a QName literal or an enclosed QName-producing form.static intskipSpace(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:
readin classReaderExtendedLiteral- Throws:
IOExceptionSyntaxException
-
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:
IOExceptionSyntaxException
-
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:
IOExceptionSyntaxException
-
checkDelim
protected Object checkDelim(LispReader reader, int next, int delimiter) throws IOException, SyntaxException
- Overrides:
checkDelimin classReaderExtendedLiteral- Throws:
IOExceptionSyntaxException
-
isNestableStartDelim
protected boolean isNestableStartDelim(int next)
- Overrides:
isNestableStartDelimin classReaderExtendedLiteral
-
isNestableEndDelim
protected boolean isNestableEndDelim(int next)
- Overrides:
isNestableEndDelimin classReaderExtendedLiteral
-
skipSpace
public static int skipSpace(LispReader reader, int ch) throws IOException, SyntaxException
- Throws:
IOExceptionSyntaxException
-
enclosedExprDelim
protected int enclosedExprDelim(int ch, LispReader reader)- Overrides:
enclosedExprDelimin classReaderExtendedLiteral
-
-