org.apache.camel.language.simple
Class SimpleTokenizer

java.lang.Object
  extended by org.apache.camel.language.simple.SimpleTokenizer

public final class SimpleTokenizer
extends Object

Tokenizer to create SimpleToken from the input.


Method Summary
static void changeFunctionEndToken(String... endToken)
           
static void changeFunctionStartToken(String... startToken)
           
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

changeFunctionStartToken

public static void changeFunctionStartToken(String... startToken)
See Also:
SimpleLanguage.changeFunctionStartToken(String...)

changeFunctionEndToken

public static void changeFunctionEndToken(String... endToken)
See Also:
SimpleLanguage.changeFunctionEndToken(String...)

nextToken

public static SimpleToken nextToken(String expression,
                                    int index,
                                    boolean allowEscape,
                                    TokenType... filter)
Create the next token

Parameters:
expression - the input expression
index - the current index
allowEscape - whether to allow escapes
filter - defines the accepted token types to be returned (character is always used as fallback)
Returns:
the created token, will always return a token

nextToken

public static SimpleToken nextToken(String expression,
                                    int index,
                                    boolean allowEscape)
Create the next token

Parameters:
expression - the input expression
index - the current index
allowEscape - whether to allow escapes
Returns:
the created token, will always return a token


Apache CAMEL