|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hotsax.html.sax.StyleLexer
class StyleLexer
This class is a scanner generated by JFlex 1.3.2 on 8/10/01 4:37 PM from the specification file file:/home/edh/sourceforge/HotSAX/./build/src/hotsax/html/sax/StyleLexer.flex
Field Summary | |
---|---|
protected boolean |
debug
|
(package private) Lval |
empty_yylval
|
static int |
ERROR_RECOVER
lexical states |
static int |
IGNORE_CDATA
|
(package private) Lval |
lexer_yylval
|
static int |
YYEOF
This character denotes the end of file |
static int |
YYINITIAL
|
Constructor Summary | |
---|---|
StyleLexer(HtmlParser p)
|
|
StyleLexer(InputStream in)
Creates a new scanner. |
|
StyleLexer(Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor. |
|
StyleLexer(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(Lval l)
|
(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 ERROR_RECOVER
public static final int IGNORE_CDATA
public static final int YYINITIAL
protected boolean debug
Lval lexer_yylval
Lval empty_yylval
Constructor Detail |
---|
public StyleLexer(Reader r, HtmlParser p)
public StyleLexer(HtmlParser p)
StyleLexer(Reader in)
in
- the java.io.Reader to read input from.StyleLexer(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 SemanticLexer
IOException
- thrown if the input could not be readvoid setLval(String text)
void setLval(Attribute a)
void setLval(Lval l)
public Reader getReader()
getReader
in interface SemanticLexer
public void setReader(Reader r)
SemanticLexer
setReader
in interface SemanticLexer
r
- Reader to setpublic void setBuffer(SemanticLexer lexer)
setBuffer
in interface SemanticLexer
lexer
- The SemanticLexer to read the buffer from.public char[] getyyBuffer()
SemanticLexer
getyyBuffer
in interface SemanticLexer
public int getyyCurrentPos()
SemanticLexer
getyyCurrentPos
in interface SemanticLexer
public int getyyMarkedPos()
SemanticLexer
getyyMarkedPos
in interface SemanticLexer
public int getyyPushbackPos()
SemanticLexer
getyyPushbackPos
in interface SemanticLexer
public int getyyEndRead()
SemanticLexer
getyyEndRead
in interface SemanticLexer
public int getyyStartRead()
SemanticLexer
getyyStartRead
in interface SemanticLexer
public void printBuffer()
SemanticLexer
printBuffer
in interface SemanticLexer
public 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
IOException
public final int yystate()
public final void yybegin(int newState)
yybegin
in interface SemanticLexer
newState
- 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 |