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 Summary
Modifier and TypeFieldDescriptionfinal String
The 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 Pattern
RegExp compiled pattern, null for all tokens except RegExp.final int[]
Positions for token: At least one, [0] is start position.final String
The 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.Token
The token.Method Summary
Modifier and TypeMethodDescriptionint
Gets the quoted string length, including the quotes: as entered.Formats the token to a string for an expression output.
Field Details
token
The token.text
The 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.
match
The 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.
pos
public 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 '}'.
pattern
RegExp compiled pattern, null for all tokens except RegExp.
Method Details
getQuotedStringLength
public int getQuotedStringLength()Gets the quoted string length, including the quotes: as entered.getString
Formats the token to a string for an expression output.- Returns:
- The string for the token.