Package net.sf.saxon.expr.parser
Enum Class OperatorSymbol
- All Implemented Interfaces:
Serializable,Comparable<OperatorSymbol>,Constable
A
Symbol is an abstraction of a token. In some cases there is a one-to-one correspondence
between symbols and tokens (for example the token "!" and the symbol
BANG. Often however the meaning of a token depends on context,
and the symbol represents the deciphered meaning of the token, given its context.
Many symbols, but not all, represent XPath operators.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiontoString()static OperatorSymbolReturns the enum constant of this class with the specified name.static OperatorSymbol[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
-
OR
-
PLUS
-
TIMES
-
MINUS
-
DIV
-
IDIV
-
MOD
-
NEGATE
-
EQUALS
-
NE
-
LT
-
LE
-
GT
-
GE
-
FEQ
-
FNE
-
FLT
-
FLE
-
FGT
-
FGE
-
IS
-
IS_NOT
-
PRECEDES
-
FOLLOWS
-
PRECEDES_OR_IS
-
FOLLOWS_OR_IS
-
UNION
-
INTERSECT
-
EXCEPT
-
OTHERWISE
-
CONCAT
-
TO
-
CAST_AS
-
CASTABLE_AS
-
TREAT_AS
-
INSTANCE_OF
-
FAT_ARROW
-
MAPPING_ARROW
-
THIN_ARROW
-
METHOD_CALL
-
SLASH
-
SLASH_SLASH
-
BANG
-
LOOKUP
-
AM_FILTER
-
NOT_AN_OPERATOR
-
-
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
-
toString
- Overrides:
toStringin classEnum<OperatorSymbol>
-