Lexer
com.opensymphony.module.sitemesh.html.tokenizer.Parser

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

  • Constructor Details

    • Parser

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

    • text

      private String text()
    • skipWhiteSpace

      private void skipWhiteSpace() throws IOException
      Throws:
      IOException
    • pushBack

      private void pushBack(int next)
    • start

      public void start()
    • parseTag

      private void parseTag(int type) throws IOException
      Throws:
      IOException
    • parseFullTag

      private void parseFullTag(int type, String name, int start) throws IOException
      Throws:
      IOException
    • parseAttribute

      private void parseAttribute() throws IOException
      Throws:
      IOException
    • 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)