Package com.iizix.prop
Enum Class SelectorExpression.Token
- All Implemented Interfaces:
Serializable
,Comparable<SelectorExpression.Token>
,Constable
- Enclosing class:
SelectorExpression
The token enumeration.
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionSimple token: &&.Simple token: ).Device token: { dev: ""}.The Java class token: { java: className }.Language token: { lang: ""}.Simple token: !.Simple token: (.Simple token: ||.The regular expression token: { regexp: env: "string" }.The selector token: { sel: "ref:/path" }.The wild card token: { wc: env: "string" }.Field Summary
Method Summary
Modifier and TypeMethodDescriptionstatic SelectorExpression.Token
Returns the enum constant of this class with the specified name.static SelectorExpression.Token[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
DEVICE
Device token: { dev: ""}.LANGUAGE
Language token: { lang: ""}.SELECTOR
The selector token: { sel: "ref:/path" }.WILD_CARD
The wild card token: { wc: env: "string" }.REG_EXP
The regular expression token: { regexp: env: "string" }.JAVA_CLASS
The Java class token: { java: className }.OPEN
Simple token: (.CLOSE
Simple token: ).OR
Simple token: ||.AND
Simple token: &&.NOT
Simple token: !.
Field Details
length
public final int lengthThe length of the token, i.e. the text for e.g. JAVA_CLASS is "java" and is 4.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null