| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthotsax.html.sax.HtmlLexer
class HtmlLexer
This class is a scanner generated by JFlex 1.3.2 on 5/3/02 10:58 PM from the specification file file:/home/edh/sourceforge/tmp/hotsax/HotSAX-0.1.2c/./build/src/hotsax/html/sax/HtmlLexer.flex
| Field Summary | |
|---|---|
static int | 
APOSSTRING
 | 
static int | 
ATTRVAL
lexical states  | 
protected  boolean | 
debug
 | 
(package private)  Lval | 
empty_yylval
 | 
static int | 
ERROR_RECOVER
 | 
static int | 
IGNORE_CDATA
 | 
static int | 
IGNORE_COMMENT
 | 
static int | 
IGNORE_DOCTYPE
 | 
static int | 
IGNORE_PI
 | 
static int | 
INNER
 | 
(package private)  Lval | 
lexer_yylval
 | 
static int | 
PI_COLLECT
 | 
static int | 
STRING
 | 
static int | 
YYEOF
This character denotes the end of file  | 
static int | 
YYINITIAL
 | 
| Constructor Summary | |
|---|---|
HtmlLexer(InputStream in)
Creates a new scanner.  | 
|
HtmlLexer(Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor.  | 
|
HtmlLexer(Reader r,
          HtmlParser p)
 | 
|
| Method Summary | |
|---|---|
 int | 
_yylex()
mask the actual implementation of yylex to return the first SOF and the final EOF.  | 
 boolean | 
getDebug()
 | 
 boolean | 
getEOF()
 | 
 Reader | 
getReader()
Return the yy_reader for this class.  | 
 char[] | 
getyyBuffer()
Return the character buffer of the lexer.  | 
 int | 
getyyCurrentPos()
Return the current position of the lexer.  | 
 int | 
getyyEndRead()
Return the end read of the buffer of the lexer.  | 
 int | 
getyyMarkedPos()
Return the marked position of the lexer.  | 
 int | 
getyyPushbackPos()
Return the pushback position of the lexer.  | 
 int | 
getyyStartRead()
Return the start read of the buffer of the lexer.  | 
static void | 
main(String[] argv)
Runs the scanner on input files.  | 
 void | 
p(String s)
 | 
 void | 
printBuffer()
Debugs the yy_buffer.  | 
 void | 
setBuffer(SemanticLexer lexer)
Sets this lexer to the same yybuffer, and character positions as the other lexer  | 
 void | 
setDebug(boolean debug)
 | 
(package private)  void | 
setLval(Attribute a)
 | 
(package private)  void | 
setLval(String text)
 | 
 void | 
setReader(Reader r)
Ser the Reader for the lexer.  | 
 void | 
yybegin(int newState)
Enters a new lexical state  | 
 char | 
yycharat(int pos)
Returns the character at position pos from the matched text.  | 
 void | 
yyclose()
Closes the input stream.  | 
 int | 
yylength()
Returns the length of the matched text region.  | 
 int | 
yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.  | 
 void | 
yylexerror_reset()
 | 
 void | 
yyreset(Reader reader)
Closes the current stream, and resets the scanner to read from a new input stream.  | 
 int | 
yystate()
Returns the current lexical state.  | 
 String | 
yytext()
Returns the text matched by the current regular expression.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int YYEOF
public static final int ATTRVAL
public static final int STRING
public static final int IGNORE_CDATA
public static final int APOSSTRING
public static final int PI_COLLECT
public static final int YYINITIAL
public static final int INNER
public static final int IGNORE_COMMENT
public static final int ERROR_RECOVER
public static final int IGNORE_DOCTYPE
public static final int IGNORE_PI
protected boolean debug
Lval lexer_yylval
Lval empty_yylval
| Constructor Detail | 
|---|
public HtmlLexer(Reader r,
                 HtmlParser p)
HtmlLexer(Reader in)
in - the java.io.Reader to read input from.HtmlLexer(InputStream in)
in - the java.io.Inputstream to read input from.| Method Detail | 
|---|
public void setDebug(boolean debug)
public boolean getDebug()
public void p(String s)
public boolean getEOF()
public void yylexerror_reset()
public int _yylex()
           throws IOException
_yylex in interface SemanticLexerIOException - thrown if the input could not be readvoid setLval(String text)
void setLval(Attribute a)
public Reader getReader()
getReader in interface SemanticLexerpublic void setReader(Reader r)
SemanticLexer
setReader in interface SemanticLexerr - Reader to setpublic void setBuffer(SemanticLexer lexer)
setBuffer in interface SemanticLexerlexer - The SemanticLexer to read the buffer from.public char[] getyyBuffer()
SemanticLexer
getyyBuffer in interface SemanticLexerpublic int getyyCurrentPos()
SemanticLexer
getyyCurrentPos in interface SemanticLexerpublic int getyyMarkedPos()
SemanticLexer
getyyMarkedPos in interface SemanticLexerpublic int getyyPushbackPos()
SemanticLexer
getyyPushbackPos in interface SemanticLexerpublic int getyyEndRead()
SemanticLexer
getyyEndRead in interface SemanticLexerpublic int getyyStartRead()
SemanticLexer
getyyStartRead in interface SemanticLexerpublic void printBuffer()
SemanticLexer
printBuffer in interface SemanticLexerpublic static void main(String[] argv)
argv - the command line, contains the filenames to run
               the scanner on.
public final void yyclose()
                   throws IOException
IOException
public final void yyreset(Reader reader)
                   throws IOException
reader - the new input stream
IOExceptionpublic final int yystate()
public final void yybegin(int newState)
yybegin in interface SemanticLexernewState - the new lexical statepublic final String yytext()
public final char yycharat(int pos)
pos - the position of the character to fetch. 
            A value from 0 to yylength()-1.
public final int yylength()
public int yylex()
          throws IOException
IOException - if any I/O-Error occurs
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||