|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstep3.screen.yyLex
public static class screen.yyLex
| Field Summary | |
|---|---|
protected Map |
literals
maps yytext() value to a variable Object[]
with Integer for token as first element
and null or an object created on first access for value as the second element. |
protected int |
token
returned by token(). |
protected Object |
value
returned by value(). |
private int[] |
yy_acpt
|
private boolean |
yy_at_bol
|
private int |
YY_BOL
|
private char[] |
yy_buffer
|
private int |
yy_buffer_end
|
private int |
yy_buffer_index
|
private int |
yy_buffer_read
|
private int |
YY_BUFFER_SIZE
|
private int |
yy_buffer_start
|
private int[] |
yy_cmap
|
private int |
YY_E_INTERNAL
|
private int |
YY_E_MATCH
|
private int |
YY_END
|
private int |
YY_EOF
|
private boolean |
yy_eof_done
|
private String[] |
yy_error_string
|
private int |
YY_F
|
private boolean |
yy_last_was_cr
|
private int |
yy_lexical_state
|
private int |
YY_NO_ANCHOR
|
private int |
YY_NO_STATE
|
private int |
YY_NOT_ACCEPT
|
private int[][] |
yy_nxt
|
private BufferedReader |
yy_reader
|
private int[] |
yy_rmap
|
private int |
YY_START
|
private int[] |
yy_state_dtrans
|
private int |
YYINITIAL
|
private int |
yyline
|
| Constructor Summary | |
|---|---|
private |
screen.yyLex()
|
|
screen.yyLex(InputStream instream)
|
|
screen.yyLex(Reader reader)
|
| Method Summary | |
|---|---|
boolean |
advance()
move on to next token. |
static void |
main(screen.yyInput scanner)
scanner test driver. |
static void |
main(String[] args)
main program, generates and tests a scanner on standard input. |
int |
token()
current input symbol. |
String |
toString()
position for error message. |
private int[][] |
unpackFromString(int size1,
int size2,
String st)
|
Object |
value()
null or object associated with current input symbol. |
static String |
visible(String s)
return a JLex-style visible rendering of a string. |
private int |
yy_advance()
|
private char[] |
yy_double(char[] buf)
|
private void |
yy_error(int code,
boolean fatal)
|
private void |
yy_mark_end()
|
private void |
yy_mark_start()
|
private void |
yy_move_end()
|
private void |
yy_to_mark()
|
private void |
yybegin(int state)
|
private int |
yylength()
|
private String |
yytext()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final int YY_BUFFER_SIZE
private final int YY_F
private final int YY_NO_STATE
private final int YY_NOT_ACCEPT
private final int YY_START
private final int YY_END
private final int YY_NO_ANCHOR
private final int YY_BOL
private final int YY_EOF
protected int token
token().
protected Object value
value().
protected Map literals
yytext() value to a variable Object[]
with Integer for token as first element
and null or an object created on first access for value as the second element.
The only method used is put; this is not final
so that it can be used as the base of an environment stack.
private BufferedReader yy_reader
private int yy_buffer_index
private int yy_buffer_read
private int yy_buffer_start
private int yy_buffer_end
private char[] yy_buffer
private int yyline
private boolean yy_at_bol
private int yy_lexical_state
private boolean yy_eof_done
private final int YYINITIAL
private final int[] yy_state_dtrans
private boolean yy_last_was_cr
private final int YY_E_INTERNAL
private final int YY_E_MATCH
private String[] yy_error_string
private int[] yy_acpt
private int[] yy_cmap
private int[] yy_rmap
private int[][] yy_nxt
| Constructor Detail |
|---|
public screen.yyLex(Reader reader)
public screen.yyLex(InputStream instream)
private screen.yyLex()
| Method Detail |
|---|
public static void main(String[] args)
throws IOException
IOException
public static void main(screen.yyInput scanner)
throws IOException
IOExceptionpublic int token()
token in interface screen.yyInputpublic Object value()
value in interface screen.yyInputscreen.yyInput.token().public String toString()
toString in class Objectpublic static String visible(String s)
private void yybegin(int state)
private int yy_advance()
throws IOException
IOExceptionprivate void yy_move_end()
private void yy_mark_start()
private void yy_mark_end()
private void yy_to_mark()
private String yytext()
private int yylength()
private char[] yy_double(char[] buf)
private void yy_error(int code,
boolean fatal)
private int[][] unpackFromString(int size1,
int size2,
String st)
public boolean advance()
throws IOException
screen.yyInput
advance in interface screen.yyInputIOException - on input error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||