- All Implemented Interfaces:
Serializable
,Comparable<Operator>
,Constable
,Visitable
An operator. See Operators.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStandard addition operator.The AND operator.The assigment operator (Read as in `p := (a)-->(b)`)The string concatenating operator.String operator forCONTAINS
.Standard division operator.String operator forENDS WITH
.Comparison for equality.Operator for exponentiation.Property operator for retrieving properties.> comparison.≥ comparison.IN
operator.Comparison for inequality.IS NOT NULL
comparison.IS NULL
comparison.< comparison.≤ comparison.The string matching operator.Standard modulo operator.Standard multiplication operator.Property operator for modifying properties.The NOT operator.The OR operator.The pipe operatorThe label operator removing labels.Property operator for assigning properties.The label operator adding labels.String operator forSTARTS WITH
.Standard subtraction operator.Unary minus operator.Unary plus operator.The XOR operator. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
toString()
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname.static Operator
Returns the enum constant of this class with the specified name.static Operator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADDITION
Standard addition operator. -
SUBTRACTION
Standard subtraction operator. -
UNARY_MINUS
Unary minus operator. -
UNARY_PLUS
Unary plus operator. -
MULTIPLICATION
Standard multiplication operator. -
DIVISION
Standard division operator. -
MODULO_DIVISION
Standard modulo operator. -
EXPONENTIATION
Operator for exponentiation. -
EQUALITY
Comparison for equality. -
INEQUALITY
Comparison for inequality. -
LESS_THAN
< comparison. -
GREATER_THAN
> comparison. -
LESS_THAN_OR_EQUAL_TO
≤ comparison. -
GREATER_THAN_OR_EQUAL_TO
≥ comparison. -
IS_NULL
IS NULL
comparison. -
IS_NOT_NULL
IS NOT NULL
comparison. -
STARTS_WITH
String operator forSTARTS WITH
. -
ENDS_WITH
String operator forENDS WITH
. -
CONTAINS
String operator forCONTAINS
. -
AND
The AND operator. -
OR
The OR operator. -
XOR
The XOR operator. -
NOT
The NOT operator. -
CONCAT
The string concatenating operator. -
MATCHES
The string matching operator. -
IN
IN
operator. -
SET
Property operator for assigning properties. -
GET
Property operator for retrieving properties. -
MUTATE
Property operator for modifying properties. -
SET_LABEL
The label operator adding labels. -
REMOVE_LABEL
The label operator removing labels. -
ASSIGMENT
The assigment operator (Read as in `p := (a)-->(b)`) -
PIPE
The pipe 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
-
getRepresentation
- Returns:
- The operators textual representation.
-
getType
- Returns:
- The type of this operator.
-
toString
Description copied from interface:Visitable
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoString
is recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-