Package com.iizix.prop
Class SelectorExpression.TokenData
java.lang.Object
com.iizix.prop.SelectorExpression.TokenData
- Enclosing class:
- SelectorExpression
Tokens data class with token information, and positions (offsets) in the expression String.
- Field SummaryFieldsModifier and TypeFieldDescription- final StringThe first text, null when not used, otherwise: SELECTOR: the selector name, JAVA_CLASS: the class name, and WILD_CARD and REG_EXP: the environment variable.- final PatternRegExp compiled pattern, null for all tokens except RegExp.- final int[]Positions for token: At least one, [0] is start position.- final StringThe first text, null when not used, otherwise: SELECTOR: the selector name, JAVA_CLASS: the class name, and WILD_CARD and REG_EXP: the environment variable.- final SelectorExpression.TokenThe token.
- Method SummaryModifier and TypeMethodDescription- intGets the quoted string length, including the quotes: as entered.Formats the token to a string for an expression output.
- Field Details- tokenThe token.
- textThe first text, null when not used, otherwise:- SELECTOR: the selector name,
- JAVA_CLASS: the class name, and
- WILD_CARD and REG_EXP: the environment variable.
 
- matchThe first text, null when not used, otherwise:- SELECTOR: the selector name,
- JAVA_CLASS: the class name, and
- WILD_CARD and REG_EXP: the environment variable.
 
- pospublic final int[] posPositions for token: At least one, [0] is start position.- NOT: The locations of all '!' characters (if many are present).
- SELECTOR:
 [0] position for '{',
 [1] position for "sel",
 [2] position for ':',
 [3] the selector name,
 [4] position for '}'.
- JAVA_CLASS:
 [0] position for '{',
 [1] position for "java",
 [2] position for ':',
 [3] the class name,
 [4] position for '}'.
- WILD_CARD and REG_EXP:
 [0] position for '{',
 [1] position for keyword,
 [2] position for ':',
 [3] the environment variable name,
 [4] position for ':',
 [5] position for quote,
 [6] position for '}'.
 
- patternRegExp compiled pattern, null for all tokens except RegExp.
 
- Method Details- getQuotedStringLengthpublic int getQuotedStringLength()Gets the quoted string length, including the quotes: as entered.
- getStringFormats the token to a string for an expression output.- Returns:
- The string for the token.