Class Parser
java.lang.Object
com.opensymphony.module.sitemesh.html.tokenizer.Parser
Looks for patterns of tokens in the Lexer and translates these to calls to pass to the TokenHandler.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcolumn()protected intlength()protected intline()protected voidparsedAttribute(String name, String value, boolean quoted) protected voidprotected voidparsedText(int position, int length) protected intposition()protected voidreportError(String message, int line, int column) protected voidvoidstart()final voidyybegin(int arg0) final charyycharat(int arg0) final voidyyclose()final intyylength()intyylex()final voidfinal intyystate()final Stringyytext()
-
Field Details
-
SLASH
public static final short SLASH- See Also:
-
WHITESPACE
public static final short WHITESPACE- See Also:
-
EQUALS
public static final short EQUALS- See Also:
-
QUOTE
public static final short QUOTE- See Also:
-
WORD
public static final short WORD- See Also:
-
TEXT
public static final short TEXT- See Also:
-
QUOTED
public static final short QUOTED- See Also:
-
LT
public static final short LT- See Also:
-
GT
public static final short GT- See Also:
-
LT_OPEN_MAGIC_COMMENT
public static final short LT_OPEN_MAGIC_COMMENT- See Also:
-
LT_CLOSE_MAGIC_COMMENT
public static final short LT_CLOSE_MAGIC_COMMENT- See Also:
-
YYEOF
public static final int YYEOF- See Also:
-
YYINITIAL
public static final int YYINITIAL- See Also:
-
ELEMENT
public static final int ELEMENT- See Also:
-
-
Constructor Details
-
Parser
-
-
Method Details
-
start
public void start() -
parsedText
protected void parsedText(int position, int length) -
parsedTag
-
parsedAttribute
-
reportError
-
position
protected int position() -
length
protected int length() -
line
protected int line() -
column
protected int column() -
resetLexerState
protected void resetLexerState() -
yyclose
- Throws:
IOException
-
yyreset
- Throws:
IOException
-
yystate
public final int yystate() -
yybegin
public final void yybegin(int arg0) -
yytext
-
yycharat
public final char yycharat(int arg0) -
yylength
public final int yylength() -
yylex
- Throws:
IOException
-