xml.parser.javacc
Class XmlParser
java.lang.Object
xml.parser.javacc.XmlParser
- All Implemented Interfaces:
- XmlParserConstants
public class XmlParser
- extends java.lang.Object
- implements XmlParserConstants
| Fields inherited from interface xml.parser.javacc.XmlParserConstants |
ALPHA_CHAR, ALPHANUM_CHAR, ATTR_EQ, ATTR_NAME, ATTR_VAL, COMMENT_END, COMMENT_EOL, COMMENT_START, COMMENT_WORD, DASH, DECL_ANY, DECL_END, DECL_START, DEFAULT, ENDTAG_START, EOF, EOL, IDENTIFIER, IDENTIFIER_CHAR, IMPLICIT_TAG_END, LAV_ERROR, LexAttrVal, LexComment, LexDecl, LexInTag, LexStartTag, LIT_ERROR, LST_ERROR, NEWLINE, NUM_CHAR, PCDATA, QUOTE, QUOTED_STRING, QUOTED_STRING_NB, TAG_END, TAG_NAME, TAG_SLASHEND, TAG_START, tokenImage, WHITESPACE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public XmlParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
XmlParser
public XmlParser(java.io.Reader in,
int lineOffset,
int columnOffset)
- The line offset is used when the XML to be parsed is only part of a file,
- Parameters:
lineOffset - The line number of the first line of the fragment.columnOffset - The column number of the first character of the fragment.
XmlParser
public XmlParser(java.io.InputStream stream)
XmlParser
public XmlParser(java.io.InputStream stream,
java.lang.String encoding)
XmlParser
public XmlParser(java.io.Reader stream)
XmlParser
public XmlParser(XmlParserTokenManager tm)
setLineSeparator
public void setLineSeparator(java.lang.String ls)
main
public static void main(java.lang.String[] args)
throws ParseException
- Throws:
ParseException
setTabSize
public void setTabSize(int size)
getTabSize
public int getTabSize()
getParseErrors
public java.util.List<sidekick.util.ParseError> getParseErrors()
XmlDocument
public final XmlDocument XmlDocument()
throws ParseException
- Throws:
ParseException
ElementSequence
public final XmlDocument.ElementSequence ElementSequence()
throws ParseException
- Throws:
ParseException
Element
public final XmlDocument.XmlElement Element()
throws ParseException
- Throws:
ParseException
Attribute
public final XmlDocument.Attribute Attribute()
throws ParseException
- Throws:
ParseException
AttributeList
public final XmlDocument.AttributeList AttributeList()
throws ParseException
- Throws:
ParseException
Tag
public final XmlDocument.XmlElement Tag()
throws ParseException
- Throws:
ParseException
EndTag
public final XmlDocument.XmlElement EndTag()
throws ParseException
- Throws:
ParseException
CommentTag
public final XmlDocument.Comment CommentTag()
throws ParseException
- Throws:
ParseException
DeclTag
public final XmlDocument.Comment DeclTag()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(XmlParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()