| |
|
| gnu.text.Lexer gnu.ecmascript.Lexer
colonToken | final public static Char colonToken(Code) | | |
commaToken | final public static Char commaToken(Code) | | |
equalToken | final public static Char equalToken(Code) | | |
lbraceToken | final public static Char lbraceToken(Code) | | |
lbracketToken | final public static Char lbracketToken(Code) | | |
lparenToken | final public static Char lparenToken(Code) | | |
rbraceToken | final public static Char rbraceToken(Code) | | |
rbracketToken | final public static Char rbracketToken(Code) | | |
rparenToken | final public static Char rparenToken(Code) | | |
semicolonToken | final public static Char semicolonToken(Code) | | |
tildeToken | final public static Char tildeToken(Code) | | |
getToken | public Object getToken() throws java.io.IOException, gnu.text.SyntaxException(Code) | | Returns the next token.
Returns:
- end-of-file
- Sequence.eofValue
- end-of-line>dd>eolToken
- reserved word
- ???
- identifier>
- a java.lang.String
- punctuator
- ???
Literals are returned a QuoteExp objects, Specifically:
- numeric literal
- a QuoteExp of a java.lang.Double value
- boolean literal
- a QuoteExp of java.lang.Boolean.TRUE or FALSE
- null literal
- a QuoteExp whose value is null
- string literal
- a QuoteExp whose value is a String
|
initReserved | static synchronized void initReserved()(Code) | | |
Methods inherited from gnu.text.Lexer | public boolean checkErrors(PrintWriter out, int max)(Code)(Java Doc) public boolean checkNext(char ch) throws java.io.IOException(Code)(Java Doc) public void clearErrors()(Code)(Java Doc) public void close() throws java.io.IOException(Code)(Java Doc) public void eofError(String msg) throws SyntaxException(Code)(Java Doc) public void eofError(String message, int startLine, int startColumn) throws SyntaxException(Code)(Java Doc) public void error(char severity, String filename, int line, int column, String message)(Code)(Java Doc) public void error(char severity, String message)(Code)(Java Doc) public void error(String message)(Code)(Java Doc) public void fatal(String message) throws SyntaxException(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) public SourceError getErrors()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) public SourceMessages getMessages()(Code)(Java Doc) public String getName()(Code)(Java Doc) final public LineBufferedReader getPort()(Code)(Java Doc) public boolean isInteractive()(Code)(Java Doc) public void mark() throws java.io.IOException(Code)(Java Doc) public int peek() throws java.io.IOException(Code)(Java Doc) public void popNesting(char save)(Code)(Java Doc) public char pushNesting(char promptChar)(Code)(Java Doc) public int read() throws java.io.IOException(Code)(Java Doc) public int read(char[] buf, int offset, int length) throws java.io.IOException(Code)(Java Doc) public static long readDigitsInBuffer(LineBufferedReader port, int radix)(Code)(Java Doc) public int readOptionalExponent() throws java.io.IOException(Code)(Java Doc) public void reset() throws java.io.IOException(Code)(Java Doc) public boolean seenErrors()(Code)(Java Doc) public void setInteractive(boolean v)(Code)(Java Doc) public void setMessages(SourceMessages messages)(Code)(Java Doc) public void skip() throws java.io.IOException(Code)(Java Doc) protected void skip_quick() throws java.io.IOException(Code)(Java Doc) public void tokenBufferAppend(int ch)(Code)(Java Doc) public void unread(int ch) throws java.io.IOException(Code)(Java Doc) protected void unread() throws java.io.IOException(Code)(Java Doc) protected void unread_quick() throws java.io.IOException(Code)(Java Doc)
|
|
|
|