public class ExpressionTokenizer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TOKEN_AND |
static int |
TOKEN_END |
static int |
TOKEN_EQ |
static int |
TOKEN_GE |
static int |
TOKEN_GT |
static int |
TOKEN_LBRACE |
static int |
TOKEN_LE |
static int |
TOKEN_LT |
static int |
TOKEN_NOT |
static int |
TOKEN_NOT_EQ |
static int |
TOKEN_OR |
static int |
TOKEN_RBRACE |
static int |
TOKEN_STRING |
Constructor and Description |
---|
ExpressionTokenizer(String expr)
Creates a new parser for the specified expression.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex() |
String |
getTokenValue() |
boolean |
hasMoreTokens() |
protected boolean |
isMetaChar(char c) |
int |
nextToken() |
public static final int TOKEN_STRING
public static final int TOKEN_AND
public static final int TOKEN_OR
public static final int TOKEN_NOT
public static final int TOKEN_EQ
public static final int TOKEN_NOT_EQ
public static final int TOKEN_RBRACE
public static final int TOKEN_LBRACE
public static final int TOKEN_GE
public static final int TOKEN_LE
public static final int TOKEN_GT
public static final int TOKEN_LT
public static final int TOKEN_END
public ExpressionTokenizer(String expr)
expr
- The expressionpublic boolean hasMoreTokens()
true
if there are more tokens.public int getIndex()
protected boolean isMetaChar(char c)
public int nextToken()
public String getTokenValue()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.