|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsidekick.html.parser.html.HtmlParser
public class HtmlParser
| Field Summary | |
|---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
HtmlParserTokenManager |
token_source
Generated Token Manager. |
| Fields inherited from interface sidekick.html.parser.html.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, IN_JSP_EXP, JSP_EXP_END, LAV_ERROR, LexAttrVal, LexComment, LexDecl, LexInTag, LexScript, LexStartTag, LexStyle, LIT_ERROR, LST_ERROR, NEWLINE, NUM_CHAR, PCDATA, QUOTE, QUOTED_STRING, QUOTED_STRING_NB, SCRIPT_END, STYLE_END, STYLE_IDENTIFIER, TAG_END, TAG_NAME, TAG_SCRIPT, TAG_SLASHEND, TAG_START, TAG_STYLE, tokenImage, WHITESPACE |
| Constructor Summary | |
|---|---|
HtmlParser(HtmlParserTokenManager tm)
Constructor with generated Token Manager. |
|
HtmlParser(java.io.InputStream stream)
Constructor with InputStream. |
|
HtmlParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding |
|
HtmlParser(java.io.Reader stream)
Constructor. |
|
HtmlParser(java.io.Reader in,
int lineOffset,
int columnOffset)
The line offset is used when the HTML to be parsed is only part of a file, |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public HtmlParserTokenManager token_source
public Token token
public Token jj_nt
| Constructor Detail |
|---|
public HtmlParser(java.io.Reader in,
int lineOffset,
int columnOffset)
lineOffset - The line number of the first line of the fragment.columnOffset - The column number of the first character of the fragment.public HtmlParser(java.io.InputStream stream)
public HtmlParser(java.io.InputStream stream,
java.lang.String encoding)
public HtmlParser(java.io.Reader stream)
public HtmlParser(HtmlParserTokenManager tm)
| Method Detail |
|---|
public void setLineSeparator(java.lang.String ls)
public static void main(java.lang.String[] args)
throws ParseException
ParseExceptionpublic void setTabSize(int size)
public int getTabSize()
public java.util.List<sidekick.util.ParseError> getParseErrors()
public final HtmlDocument HtmlDocument()
throws ParseException
ParseException
public final HtmlDocument.ElementSequence ElementSequence()
throws ParseException
ParseException
public final HtmlDocument.HtmlElement Element()
throws ParseException
ParseException
public final HtmlDocument.Attribute Attribute()
throws ParseException
ParseException
public final HtmlDocument.AttributeList AttributeList()
throws ParseException
ParseException
public final HtmlDocument.HtmlElement Tag()
throws ParseException
ParseException
public final java.lang.String StyleBlockContents()
throws ParseException
ParseException
public final java.lang.String ScriptBlockContents()
throws ParseException
ParseException
public final HtmlDocument.HtmlElement ScriptBlock()
throws ParseException
ParseException
public final HtmlDocument.HtmlElement StyleBlock()
throws ParseException
ParseException
public final HtmlDocument.HtmlElement EndTag()
throws ParseException
ParseException
public final HtmlDocument.Comment CommentTag()
throws ParseException
ParseException
public final HtmlDocument.Comment DeclTag()
throws ParseException
ParseExceptionpublic void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(HtmlParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||