|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.wiki.template.expr.Scanner
public class Scanner
Field Summary | |
---|---|
protected char |
fCurrentChar
Current input character |
protected int |
fCurrentColumnStartPosition
Column counter for syntax errors |
protected int |
fCurrentPosition
The position of the current character in the input string |
protected IParserFactory |
fFactory
|
protected java.lang.String |
fInputString
Current parser input string |
protected java.lang.String |
fOperatorString
The last determined operator string |
protected java.util.List |
fOperList
protected List |
protected int |
fToken
Current input token |
protected int |
numFormat
|
protected int |
rowCount
Row counter for syntax errors. |
static int |
TT_CONSTANT
Token type: constant found in input string |
static int |
TT_DIGIT
Token type: digit 0,1,2,3,4,5,6,7,8,9 |
static int |
TT_EOF
Token type: End-of_File |
static int |
TT_FLOATING_POINT
Token type: floating point number |
static int |
TT_OPERATOR
Token type: operator found in input string |
static int |
TT_PRECEDENCE_CLOSE
Token type: closing bracket ')' for sub-formulas with higher precedence |
static int |
TT_PRECEDENCE_OPEN
Token type: opening bracket '(' for sub-formulas with higher precedence |
Constructor Summary | |
---|---|
Scanner()
Initialize Scanner without a math-expression |
Method Summary | |
---|---|
protected java.lang.String |
getIdentifier()
|
protected void |
getNextToken()
Get the next token from the input string |
protected java.lang.Object[] |
getNumberString()
|
protected java.util.List |
getOperator()
|
protected java.lang.StringBuffer |
getStringBuffer()
|
protected void |
initialize(java.lang.String s)
|
protected void |
throwSyntaxError(java.lang.String error)
|
protected void |
throwSyntaxError(java.lang.String error,
int errorLength)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String fInputString
protected char fCurrentChar
protected int fCurrentPosition
protected int fToken
protected java.lang.String fOperatorString
protected java.util.List fOperList
protected int rowCount
protected int fCurrentColumnStartPosition
public static final int TT_EOF
public static final int TT_FLOATING_POINT
public static final int TT_PRECEDENCE_OPEN
public static final int TT_PRECEDENCE_CLOSE
public static final int TT_CONSTANT
public static final int TT_OPERATOR
public static final int TT_DIGIT
protected int numFormat
protected IParserFactory fFactory
Constructor Detail |
---|
public Scanner()
Method Detail |
---|
protected void initialize(java.lang.String s) throws SyntaxError
SyntaxError
protected java.util.List getOperator()
protected void getNextToken() throws SyntaxError
SyntaxError
protected void throwSyntaxError(java.lang.String error) throws SyntaxError
SyntaxError
protected void throwSyntaxError(java.lang.String error, int errorLength) throws SyntaxError
SyntaxError
protected java.lang.String getIdentifier()
protected java.lang.Object[] getNumberString()
protected java.lang.StringBuffer getStringBuffer() throws SyntaxError
SyntaxError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |