Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » html » tokenizer » [javadoc | source]
com.opensymphony.module.sitemesh.html.tokenizer
class: Parser [javadoc | source]
java.lang.Object
   Lexer
      com.opensymphony.module.sitemesh.html.tokenizer.Parser

All Implemented Interfaces:
    Text, Tag

Looks for patterns of tokens in the Lexer and translates these to calls to pass to the TokenHandler.
Field Summary
public static final  short SLASH     
public static final  short WHITESPACE     
public static final  short EQUALS     
public static final  short QUOTE     
public static final  short WORD     
public static final  short TEXT     
public static final  short QUOTED     
public static final  short LT     
public static final  short GT     
public static final  short LT_OPEN_MAGIC_COMMENT     
public static final  short LT_CLOSE_MAGIC_COMMENT     
Constructor:
 public Parser(char[] input,
    TokenHandler handler) 
Method from com.opensymphony.module.sitemesh.html.tokenizer.Parser Summary:
getAttributeCount,   getAttributeName,   getAttributeValue,   getAttributeValue,   getContents,   getName,   getType,   hasAttribute,   parsedAttribute,   parsedTag,   parsedText,   reportError,   start,   writeTo
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.html.tokenizer.Parser Detail:
 public int getAttributeCount() 
 public String getAttributeName(int index) 
 public String getAttributeValue(int index) 
 public String getAttributeValue(String name) 
 public String getContents() 
 public String getName() 
 public int getType() 
 public boolean hasAttribute(String name) 
 public  void parsedAttribute(String name,
    String value,
    boolean quoted) 
 public  void parsedTag(int type,
    String name,
    int start,
    int length) 
 public  void parsedText(int position,
    int length) 
 protected  void reportError(String message,
    int line,
    int column) 
 public  void start() 
 public  void writeTo(CharArray out)