Package com.iizix.prop
Enum SelectorExpression.Token
- java.lang.Object
- java.lang.Enum<SelectorExpression.Token>
- com.iizix.prop.SelectorExpression.Token
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SelectorExpression.Token>
- Enclosing class:
- SelectorExpression
public static enum SelectorExpression.Token extends java.lang.Enum<SelectorExpression.Token>
The token enumeration.
Enum Constant Summary
Enum Constants Enum Constant Description AND
Simple token: &&.CLOSE
Simple token: ).DEVICE
Device token: { dev: ""}.JAVA_CLASS
The Java class token: { java: className }.LANGUAGE
Language token: { lang: ""}.NOT
Simple token: !.OPEN
Simple token: (.OR
Simple token: ||.REG_EXP
The regular expression token: { regexp: env: "string" }.SELECTOR
The selector token: { sel: "ref:/path" }.WILD_CARD
The wild card token: { wc: env: "string" }.
Field Summary
Fields Modifier and Type Field Description int
length
The length of the token, i.e.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SelectorExpression.Token
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SelectorExpression.Token[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
DEVICE
public static final SelectorExpression.Token DEVICE
Device token: { dev: ""}.
LANGUAGE
public static final SelectorExpression.Token LANGUAGE
Language token: { lang: ""}.
SELECTOR
public static final SelectorExpression.Token SELECTOR
The selector token: { sel: "ref:/path" }.
WILD_CARD
public static final SelectorExpression.Token WILD_CARD
The wild card token: { wc: env: "string" }.
REG_EXP
public static final SelectorExpression.Token REG_EXP
The regular expression token: { regexp: env: "string" }.
JAVA_CLASS
public static final SelectorExpression.Token JAVA_CLASS
The Java class token: { java: className }.
OPEN
public static final SelectorExpression.Token OPEN
Simple token: (.
CLOSE
public static final SelectorExpression.Token CLOSE
Simple token: ).
OR
public static final SelectorExpression.Token OR
Simple token: ||.
AND
public static final SelectorExpression.Token AND
Simple token: &&.
NOT
public static final SelectorExpression.Token NOT
Simple token: !.
Method Detail
values
public static SelectorExpression.Token[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SelectorExpression.Token c : SelectorExpression.Token.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static SelectorExpression.Token valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null