| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.cnd.CndTokenizer
public class CndTokenizer

A TokenStream.Tokenizer implementation that adheres to the CND format by ignoring whitespace while including tokens for individual
 symbols, the period ('.'), single-quoted strings, double-quoted strings, whitespace-delimited words, and optionally comments.
 This tokenizer optionally includes comments and vendor extensions.
| Field Summary | |
|---|---|
| static int | COMMENTThe token type for tokens that consist of all the characters between "/*" and "*/" or between "//" and the next line terminator (e.g., '\n', '\r' or "\r\n"). | 
| static int | DECIMALThe token type for tokens that consist of an individual '.' character. | 
| static int | DOUBLE_QUOTED_STRINGThe token type for tokens that consist of all the characters within double-quotes. | 
| static int | SINGLE_QUOTED_STRINGThe token type for tokens that consist of all the characters within single-quotes. | 
| static int | SYMBOLThe token type for tokens that consist of an individual "symbol" character. | 
| static int | VENDOR_EXTENSIONThe token type for the token containing a vendor extension block. | 
| static int | WORDThe token type for tokens that represent an unquoted string containing a character sequence made up of non-whitespace and non-symbol characters. | 
| Constructor Summary | |
|---|---|
| CndTokenizer(boolean useComments,
             boolean useVendorExtensions) | |
| Method Summary | |
|---|---|
|  void | tokenize(TokenStream.CharacterStream input,
         TokenStream.Tokens tokens)Process the supplied characters and construct the appropriate TokenStream.Tokenobjects. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int WORD
public static final int SYMBOL
[]<>=-+(),
public static final int DECIMAL
public static final int SINGLE_QUOTED_STRING
public static final int DOUBLE_QUOTED_STRING
public static final int COMMENT
public static final int VENDOR_EXTENSION
| Constructor Detail | 
|---|
public CndTokenizer(boolean useComments,
                    boolean useVendorExtensions)
| Method Detail | 
|---|
public void tokenize(TokenStream.CharacterStream input,
                     TokenStream.Tokens tokens)
              throws ParsingException
TokenStream.Token objects.
tokenize in interface TokenStream.Tokenizerinput - the character input stream; never nulltokens - the factory for TokenStream.Token objects, which records the order in which the tokens are created
ParsingException - if there is an error while processing the character stream (e.g., a quote is not closed, etc.)org.modeshape.common.text.TokenStream.Tokenizer#tokenize(CharacterStream, Tokens)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||