public final class SimpleTokenizer extends Object
SimpleToken
from the input.Modifier and Type | Method and Description |
---|---|
static void |
changeFunctionEndToken(String... endToken) |
static void |
changeFunctionStartToken(String... startToken) |
static boolean |
hasFunctionStartToken(String expression)
Does the expression include a simple function.
|
static SimpleToken |
nextToken(String expression,
int index,
boolean allowEscape)
Create the next token
|
static SimpleToken |
nextToken(String expression,
int index,
boolean allowEscape,
TokenType... filter)
Create the next token
|
public static boolean hasFunctionStartToken(String expression)
expression
- the expressionpublic static void changeFunctionStartToken(String... startToken)
public static void changeFunctionEndToken(String... endToken)
public static SimpleToken nextToken(String expression, int index, boolean allowEscape, TokenType... filter)
expression
- the input expressionindex
- the current indexallowEscape
- whether to allow escapesfilter
- defines the accepted token types to be returned (character is always used as fallback)public static SimpleToken nextToken(String expression, int index, boolean allowEscape)
expression
- the input expressionindex
- the current indexallowEscape
- whether to allow escapesApache Camel