Class ExpressionLexer
java.lang.Object
com.googlecode.aviator.lexer.ExpressionLexer
Expression Lexer,scan tokens from string
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final AviatorEvaluatorInstanceprivate final CharacterIteratorprivate intprivate final MathContext(package private) static final char[]private static final longprivate static final longprivate final booleanprivate final booleanprivate charprivate final SymbolTableprivate LinkedList<Token<?>> (package private) static final char[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringintintstatic booleanisBinaryOP(char ch) booleanisValidHexChar(char ch) voidnextChar()voidprevChar()voidPush back tokenToken<?> scan()Token<?> scan(boolean analyse) voidsetLineNo(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
-
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)
-