public class ExprScanner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 IExprParserFactory |
fFactory |
protected java.lang.String |
fInputString
Current parser input string
|
protected java.lang.String |
fOperatorString
The last determined operator string
|
protected java.util.List<AbstractExprOperator> |
fOperList
protected List
|
protected boolean |
fPackageMode |
protected int |
fRecursionDepth
Recursion depth for brackets.
|
protected int |
fToken
Current input token
|
protected int |
numFormat |
protected int |
rowCount
Row counter for syntax errors.
|
static int |
TT_ARGUMENTS_CLOSE
Token type: closing bracket for function arguments
|
static int |
TT_ARGUMENTS_OPEN
Token type: opening bracket for function arguments
|
static int |
TT_BLANK
Token type: pattern placeholder '_'
|
static int |
TT_BLANK_BLANK |
static int |
TT_BLANK_BLANK_BLANK |
static int |
TT_BLANK_OPTIONAL
Token type: pattern placeholder '_.'
|
static int |
TT_COMMA
',' operator
|
static int |
TT_DERIVATIVE |
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_IDENTIFIER
Token type: identifier name
|
static int |
TT_LIST_CLOSE
Token type: closing curly braces '}' for ending lists
|
static int |
TT_LIST_OPEN
Token type: opening curly braces '{' for starting lists
|
static int |
TT_NEWLINE |
static int |
TT_OPERATOR
Token type: operator found in input string
|
static int |
TT_PARTCLOSE
Token type: closing brackets for ending the "index part" of an expression
|
static int |
TT_PARTOPEN
Token type: opening brackets for starting the "index part" of an expression
|
static int |
TT_PERCENT
'%' operator
|
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
|
static int |
TT_SLOT
Token type: slot #
|
static int |
TT_SLOTSEQUENCE
Token type: slot sequence ##
|
static int |
TT_STRING
Token type: string surrounded by "....
|
Constructor and Description |
---|
ExprScanner(boolean packageMode)
Initialize Scanner without a math-expression
|
Modifier and Type | Method and Description |
---|---|
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<AbstractExprOperator> |
getOperator() |
protected java.lang.StringBuffer |
getStringBuffer() |
protected void |
initialize(java.lang.String s) |
protected boolean |
isWhitespace()
Get the next token from the input string
|
protected void |
throwSyntaxError(java.lang.String error) |
protected void |
throwSyntaxError(java.lang.String error,
int errorLength) |
protected java.lang.String fInputString
protected int fRecursionDepth
protected char fCurrentChar
protected int fCurrentPosition
protected int fToken
protected java.lang.String fOperatorString
protected java.util.List<AbstractExprOperator> 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_ARGUMENTS_OPEN
public static final int TT_ARGUMENTS_CLOSE
public static final int TT_PRECEDENCE_OPEN
public static final int TT_PRECEDENCE_CLOSE
public static final int TT_LIST_OPEN
public static final int TT_LIST_CLOSE
public static final int TT_PARTOPEN
public static final int TT_PARTCLOSE
public static final int TT_OPERATOR
public static final int TT_COMMA
public static final int TT_PERCENT
public static final int TT_STRING
public static final int TT_BLANK
public static final int TT_IDENTIFIER
public static final int TT_DIGIT
public static final int TT_SLOT
public static final int TT_SLOTSEQUENCE
public static final int TT_BLANK_BLANK
public static final int TT_BLANK_BLANK_BLANK
public static final int TT_BLANK_OPTIONAL
public static final int TT_DERIVATIVE
public static final int TT_NEWLINE
protected int numFormat
protected IExprParserFactory fFactory
protected final boolean fPackageMode
public ExprScanner(boolean packageMode)
protected void initialize(java.lang.String s) throws SyntaxError
SyntaxError
protected java.util.List<AbstractExprOperator> getOperator()
protected boolean isWhitespace()
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