java.lang.Object
com.opensymphony.module.sitemesh.html.tokenizer.Parser

public class Parser extends Object
Looks for patterns of tokens in the Lexer and translates these to calls to pass to the TokenHandler.
See Also:
  • Field Details

  • Constructor Details

    • Parser

      public Parser(char[] input, TokenHandler handler)
  • Method Details

    • start

      public void start()
    • parsedText

      protected void parsedText(int position, int length)
    • parsedTag

      protected void parsedTag(int type, String name, int start, int length)
    • parsedAttribute

      protected void parsedAttribute(String name, String value, boolean quoted)
    • reportError

      protected void reportError(String message, int line, int column)
    • position

      protected int position()
    • length

      protected int length()
    • line

      protected int line()
    • column

      protected int column()
    • resetLexerState

      protected void resetLexerState()
    • yyclose

      public final void yyclose() throws IOException
      Throws:
      IOException
    • yyreset

      public final void yyreset(Reader arg0) throws IOException
      Throws:
      IOException
    • yystate

      public final int yystate()
    • yybegin

      public final void yybegin(int arg0)
    • yytext

      public final String yytext()
    • yycharat

      public final char yycharat(int arg0)
    • yylength

      public final int yylength()
    • yylex

      public int yylex() throws IOException
      Throws:
      IOException