|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.odysseus.el.tree.impl.Scanner
public class Scanner
Handcrafted scanner.
Nested Class Summary | |
---|---|
static class |
Scanner.ExtensionToken
|
static class |
Scanner.ScanException
Scan exception type |
static class |
Scanner.Symbol
Symbol type |
static class |
Scanner.Token
|
Field Summary | |
---|---|
protected java.lang.StringBuilder |
builder
|
Constructor Summary | |
---|---|
protected |
Scanner(java.lang.String input)
Constructor. |
Method Summary | |
---|---|
protected Scanner.Token |
fixed(Scanner.Symbol symbol)
|
java.lang.String |
getInput()
|
int |
getPosition()
|
Scanner.Token |
getToken()
|
protected boolean |
isDigit(char c)
|
protected boolean |
isEval()
|
protected Scanner.Token |
keyword(java.lang.String s)
|
Scanner.Token |
next()
Scan next token. |
protected Scanner.Token |
nextEval()
token inside an eval expression |
protected Scanner.Token |
nextNumber()
number token |
protected Scanner.Token |
nextString()
string token |
protected Scanner.Token |
nextText()
text token |
protected Scanner.Token |
nextToken()
|
protected Scanner.Token |
token(Scanner.Symbol symbol,
java.lang.String value,
int length)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.StringBuilder builder
Constructor Detail |
---|
protected Scanner(java.lang.String input)
input
- expression stringMethod Detail |
---|
public java.lang.String getInput()
public Scanner.Token getToken()
public int getPosition()
protected boolean isDigit(char c)
true
iff the specified character is a digitprotected Scanner.Token keyword(java.lang.String s)
s
- name
null
protected Scanner.Token fixed(Scanner.Symbol symbol)
symbol
-
protected Scanner.Token token(Scanner.Symbol symbol, java.lang.String value, int length)
protected boolean isEval()
protected Scanner.Token nextText() throws Scanner.ScanException
Scanner.ScanException
protected Scanner.Token nextString() throws Scanner.ScanException
Scanner.ScanException
protected Scanner.Token nextNumber() throws Scanner.ScanException
Scanner.ScanException
protected Scanner.Token nextEval() throws Scanner.ScanException
Scanner.ScanException
protected Scanner.Token nextToken() throws Scanner.ScanException
Scanner.ScanException
public Scanner.Token next() throws Scanner.ScanException
getToken()
and getPosition()
can be used to retreive the token's image and input position.
Scanner.ScanException
|
Copyright © 2006-2009 Odysseus Software GmbH. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |