Class Tokenizer
java.lang.Object
com.aspectran.core.context.expr.token.Tokenizer
The Class Tokenizer.
Created: 2008. 03. 29 AM 1:55:03
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tokenizer
public Tokenizer()
-
-
Method Details
-
tokenize
Returns a list of tokens that contains tokenized string.- Parameters:
input
- the string to tokenizetextTrim
- whether to trim text- Returns:
- a list of tokens
-
optimize
Returns an array of tokens that is optimized. Eliminates unnecessary white spaces for the first and last tokens.- Parameters:
tokens
- the tokens before optimizing- Returns:
- the optimized tokens
-