|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mycompiler.myparser.JavaLexer mycompiler.myparser.Scanner
public class Scanner
Constructor Summary | |
---|---|
Scanner(java.io.Reader reader)
|
Method Summary | |
---|---|
boolean |
advance()
move on to next token. |
int |
token()
classifies current token. |
java.lang.Object |
value()
associated with current token. |
Methods inherited from class mycompiler.myparser.JavaLexer |
---|
yylex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scanner(java.io.Reader reader)
Method Detail |
---|
public int token()
JavaParser.yyInput
token
in interface JavaParser.yyInput
public boolean advance() throws java.io.IOException
JavaParser.yyInput
advance
in interface JavaParser.yyInput
IOException
- on input error.public java.lang.Object value()
JavaParser.yyInput
value
in interface JavaParser.yyInput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |