Package com.googlecode.aviator.lexer
Class ExpressionLexer
java.lang.Object
com.googlecode.aviator.lexer.ExpressionLexer
Expression Lexer,scan tokens from string
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final AviatorEvaluatorInstance
private final CharacterIterator
private int
private final MathContext
(package private) static final char[]
private static final long
private static final long
private final boolean
private final boolean
private char
private final SymbolTable
private LinkedList
<Token<?>> (package private) static final char[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
int
int
static boolean
isBinaryOP
(char ch) boolean
isValidHexChar
(char ch) void
nextChar()
void
prevChar()
void
Push back tokenToken
<?> scan()
Token
<?> scan
(boolean analyse) void
setLineNo
(int lineNo)
-
Field Details
-
OVERFLOW_FLAG
private static final long OVERFLOW_FLAG- See Also:
-
OVERFLOW_SINGLE
private static final long OVERFLOW_SINGLE- See Also:
-
peek
private char peek -
iterator
-
lineNo
private int lineNo -
symbolTable
-
tokenBuffer
-
instance
-
expression
-
mathContext
-
parseFloatIntoDecimal
private final boolean parseFloatIntoDecimal -
parseIntegralNumberIntoDecimal
private final boolean parseIntegralNumberIntoDecimal -
VALID_HEX_CHAR
static final char[] VALID_HEX_CHAR -
OPS
static final char[] OPS
-
-
Constructor Details
-
ExpressionLexer
-
-
Method Details
-
getSymbolTable
-
setLineNo
public void setLineNo(int lineNo) -
getLineNo
public int getLineNo() -
pushback
Push back token- Parameters:
token
-
-
scan
-
nextChar
public void nextChar() -
prevChar
public void prevChar() -
isValidHexChar
public boolean isValidHexChar(char ch) -
getCurrentIndex
public int getCurrentIndex() -
scan
-
getScanString
-
getBigNumberLexeme
-
isBinaryOP
public static boolean isBinaryOP(char ch)
-