public class TagParser extends Object implements TagParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
TagParserTokenManager |
token_source
Generated Token Manager.
|
ATTR_EQ, ATTR_IDENTIFIER, ATTR_NAME, ATTR_VAL, ATTR_VALUE, COMMENT, COMMENT_END, COMMENT_START, COMMENT_WORD, DECL_ATTR, DECL_END, DECL_START, DECL_TAG, DECLARATION, DEFAULT, DQUOTE, END_OF_TAG, ENDTAG_START, EOF, ERROR, IN_DECLARATION, IN_TAG, LIT_ERROR, LST_ERROR, NAME_IDENTIFIER, RAWTEXT, SPACE, SQUOTE, START_TAG, STRING, TAG_END, TAG_NAME, TAG_SLASHEND, TAG_START, tokenImage
Constructor and Description |
---|
TagParser(InputStream stream)
Constructor with InputStream.
|
TagParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
TagParser(Reader stream)
Constructor.
|
TagParser(TagParserTokenManager tm)
Constructor with generated Token Manager.
|
Modifier and Type | Method and Description |
---|---|
void |
attribute(Map<String,AttrValue> alist) |
Map<String,AttrValue> |
attributeList() |
Comment |
commentHtmlElement() |
HtmlElement |
decltag() |
void |
disable_tracing()
Disable tracing.
|
HtmlElement |
element() |
void |
enable_tracing()
Enable tracing.
|
HtmlElement |
endHtmlElement() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
ReInit(TagParserTokenManager tm)
Reinitialise.
|
HtmlElement |
tag() |
public TagParserTokenManager token_source
public Token token
public Token jj_nt
public TagParser(InputStream stream)
public TagParser(InputStream stream, String encoding)
public TagParser(Reader stream)
public TagParser(TagParserTokenManager tm)
public final HtmlElement element() throws ParseException
ParseException
public final void attribute(Map<String,AttrValue> alist) throws ParseException
ParseException
public final Map<String,AttrValue> attributeList() throws ParseException
ParseException
public final HtmlElement tag() throws ParseException
ParseException
public final HtmlElement endHtmlElement() throws ParseException
ParseException
public final Comment commentHtmlElement() throws ParseException
ParseException
public final HtmlElement decltag() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(TagParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.