gnu.kawa.lispexpr
Class ReaderXmlElement

java.lang.Object
  extended by gnu.kawa.lispexpr.ReadTableEntry
      extended by gnu.kawa.lispexpr.ReaderXmlElement

public class ReaderXmlElement
extends ReadTableEntry


Field Summary
 
Fields inherited from class gnu.kawa.lispexpr.ReadTableEntry
brace, constituent, illegal, multipleEscape, singleEscape, whitespace
 
Constructor Summary
ReaderXmlElement()
           
 
Method Summary
static void namedEntity(LispReader reader, java.lang.String name)
           
static Pair quote(java.lang.Object obj)
           
 java.lang.Object read(Lexer in, int ch, int count)
           
static Pair readContent(LispReader reader, char delimiter, Pair resultTail)
          Parse ElementContent (delimiter == '<') or AttributeContent (otherwise).
static java.lang.Object readElementConstructor(LispReader reader, int ch)
          Parse ElementConstructor.
static java.lang.Object readQNameExpression(LispReader reader, int ch, boolean forElement)
          Read either a QName literal or an enclosed QName-producing form.
 
Methods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getIllegalInstance, getKind, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderXmlElement

public ReaderXmlElement()
Method Detail

read

public java.lang.Object read(Lexer in,
                             int ch,
                             int count)
                      throws java.io.IOException,
                             SyntaxException
Overrides:
read in class ReadTableEntry
Throws:
java.io.IOException
SyntaxException

quote

public static Pair quote(java.lang.Object obj)

readQNameExpression

public static java.lang.Object readQNameExpression(LispReader reader,
                                                   int ch,
                                                   boolean forElement)
                                            throws java.io.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:
java.io.IOException
SyntaxException

readElementConstructor

public static java.lang.Object readElementConstructor(LispReader reader,
                                                      int ch)
                                               throws java.io.IOException,
                                                      SyntaxException
Parse ElementConstructor. Assume initial '<' has been processed, and we're read the next character. Reads through end of the end tag.

Throws:
java.io.IOException
SyntaxException

readContent

public static Pair readContent(LispReader reader,
                               char delimiter,
                               Pair resultTail)
                        throws java.io.IOException,
                               SyntaxException
Parse ElementContent (delimiter == '<') or AttributeContent (otherwise).

Parameters:
delimiter - is '<' if parsing ElementContent, is either '\'' or '\"' if parsing AttributeContent depending on the starting quote
Throws:
java.io.IOException
SyntaxException

namedEntity

public static void namedEntity(LispReader reader,
                               java.lang.String name)