java.lang.Object
java.lang.Record
org.neo4j.cypherdsl.core.LabelExpression
- Record Components:
type- whether this is a leaf or another nodenegated- a flag if this subtree is negatedvalue- a single value or a list of value forLabelExpression.Type.COLON_DISJUNCTIONorLabelExpression.Type.COLON_CONJUNCTIONlhs- the left hand site of this treerhs- the right hand site of this tree
- All Implemented Interfaces:
Visitable
@Deprecated(forRemoval=true)
public record LabelExpression(LabelExpression.Type type, boolean negated, List<String> value, LabelExpression lhs, LabelExpression rhs)
extends Record
implements Visitable
Deprecated, for removal: This API element is subject to removal in a future version.
This class is not used or supported anymore and will be removed in the next major
version of Cypher-DSL.
- Since:
- 2023.0.2
- Author:
- Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.No replacement, seeLabelsand its associated type -
Constructor Summary
ConstructorsConstructorDescriptionLabelExpression(String value) Deprecated, for removal: This API element is subject to removal in a future version.Creates a leaf expression from a string.LabelExpression(LabelExpression.Type type, boolean negated, List<String> value, LabelExpression lhs, LabelExpression rhs) Deprecated, for removal: This API element is subject to removal in a future version.Creates an immutable label expression. -
Method Summary
Modifier and TypeMethodDescriptionand(LabelExpression next) Deprecated, for removal: This API element is subject to removal in a future version.Create a conjunction.final booleanDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object.lhs()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thelhsrecord component.negate()Deprecated, for removal: This API element is subject to removal in a future version.Negates this expression.booleannegated()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thenegatedrecord component.or(LabelExpression next) Deprecated, for removal: This API element is subject to removal in a future version.Create a disjunction.rhs()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of therhsrecord component.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class.type()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thetyperecord component.value()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thevaluerecord component.
-
Constructor Details
-
LabelExpression
public LabelExpression(LabelExpression.Type type, boolean negated, List<String> value, LabelExpression lhs, LabelExpression rhs) Deprecated, for removal: This API element is subject to removal in a future version.Creates an immutable label expression.- Parameters:
type- whether this is a leaf or another nodenegated- a flag if this subtree is negatedvalue- a single value or a list of value forLabelExpression.Type.COLON_DISJUNCTIONorLabelExpression.Type.COLON_CONJUNCTIONlhs- the left hand site of this treerhs- the right hand site of this tree
-
LabelExpression
Deprecated, for removal: This API element is subject to removal in a future version.Creates a leaf expression from a string.- Parameters:
value- the leaf value
-
-
Method Details
-
and
Deprecated, for removal: This API element is subject to removal in a future version.Create a conjunction.- Parameters:
next- the expression to add- Returns:
- a new expression
-
or
Deprecated, for removal: This API element is subject to removal in a future version.Create a disjunction.- Parameters:
next- the expression to add- Returns:
- a new expression
-
negate
Deprecated, for removal: This API element is subject to removal in a future version.Negates this expression.- Returns:
- a new expression
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
negated
public boolean negated()Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thenegatedrecord component.- Returns:
- the value of the
negatedrecord component
-
value
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
lhs
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thelhsrecord component.- Returns:
- the value of the
lhsrecord component
-
rhs
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of therhsrecord component.- Returns:
- the value of the
rhsrecord component
-
Labelsaccessible viaCypher.exactlyLabel(String),Cypher.allLabels(Expression)orCypher.anyLabel(Expression)