com.quiotix.html.parser
Class HtmlParser
java.lang.Object
com.quiotix.html.parser.HtmlParser
- All Implemented Interfaces:
- HtmlParserConstants
- public class HtmlParser
- extends java.lang.Object
- implements HtmlParserConstants
Fields inherited from interface com.quiotix.html.parser.HtmlParserConstants |
ALPHA_CHAR, ALPHANUM_CHAR, ATTR_EQ, ATTR_NAME, ATTR_VAL, BLOCK_EOL, BLOCK_LBR, BLOCK_WORD, 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, LexScript, LexStartTag, LexStyle, LIT_ERROR, LST_ERROR, NEWLINE, NUM_CHAR, PCDATA, PCDATA_Q, PCDATA_QS, QUOTE, QUOTED_STRING, QUOTED_STRING_NB, SCRIPT_END, STYLE_END, TAG_END, TAG_NAME, TAG_SCRIPT, TAG_SLASHEND, TAG_START, TAG_STYLE, tokenImage, WHITESPACE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public HtmlParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
HtmlParser
public HtmlParser(java.io.InputStream stream)
HtmlParser
public HtmlParser(java.io.Reader stream)
HtmlParser
public HtmlParser(HtmlParserTokenManager tm)
main
public static void main(java.lang.String[] args)
throws ParseException
- Throws:
ParseException
HtmlDocument
public final HtmlDocument HtmlDocument()
throws ParseException
- Throws:
ParseException
ElementSequence
public final HtmlDocument.ElementSequence ElementSequence()
throws ParseException
- Throws:
ParseException
Element
public final HtmlDocument.HtmlElement Element()
throws ParseException
- Throws:
ParseException
Attribute
public final HtmlDocument.Attribute Attribute()
throws ParseException
- Throws:
ParseException
AttributeList
public final HtmlDocument.AttributeList AttributeList()
throws ParseException
- Throws:
ParseException
Tag
public final HtmlDocument.HtmlElement Tag()
throws ParseException
- Throws:
ParseException
BlockContents
public final HtmlDocument.ElementSequence BlockContents()
throws ParseException
- Throws:
ParseException
ScriptBlock
public final HtmlDocument.HtmlElement ScriptBlock()
throws ParseException
- Throws:
ParseException
StyleBlock
public final HtmlDocument.HtmlElement StyleBlock()
throws ParseException
- Throws:
ParseException
EndTag
public final HtmlDocument.HtmlElement EndTag()
throws ParseException
- Throws:
ParseException
CommentTag
public final HtmlDocument.Comment CommentTag()
throws ParseException
- Throws:
ParseException
DeclTag
public final HtmlDocument.Comment DeclTag()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(HtmlParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public final ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()