Enum Class Match
- All Implemented Interfaces:
Serializable, Comparable<Match>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-"Represents an element with the att attribute whose value is exactly "val".Represents an element with the att attribute whose value is a whitespace-separated list of words, one of which is exactly "val".Represents an element with the att attribute whose value begins with the prefix "val".Represents an element with the att attribute whose value contains at least one instance of the substring "val".Represents an element with the att attribute whose value ends with the suffix "val". -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanCompares attr and val values.getSign()Returns match sign.static MatchReturns the enum constant of this class with the specified name.static MatchvalueOfFirstChar(char firstChar) Resolves match type from the first character of the sign.static MatchvalueOfSign(String sign) Resolves match type from the sign.static Match[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUALS
Represents an element with the att attribute whose value is exactly "val". -
INCLUDES
Represents an element with the att attribute whose value is a whitespace-separated list of words, one of which is exactly "val". If "val" contains whitespace, it will never represent anything (since the words are separated by spaces). Also if "val" is the empty string, it will never represent anything. -
DASH
Represents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-" -
PREFIX
Represents an element with the att attribute whose value begins with the prefix "val". If "val" is the empty string then the selector does not represent anything. -
SUFFIX
Represents an element with the att attribute whose value ends with the suffix "val". If "val" is the empty string then the selector does not represent anything. -
SUBSTRING
Represents an element with the att attribute whose value contains at least one instance of the substring "val". If "val" is the empty string then the selector does not represent anything.
-
-
Field Details
-
sign
-
-
Constructor Details
-
Match
-
-
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
-
getSign
Returns match sign. -
compare
-
valueOfSign
-
valueOfFirstChar
Resolves match type from the first character of the sign. It is assumed that the second character is '='.
-