Package hydra.cypher.features
Class AtomFeatures
- java.lang.Object
-
- hydra.cypher.features.AtomFeatures
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AtomFeatures>
public class AtomFeatures extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AtomFeatures>
Various kinds of atomic expressions- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameCASE_EXPRESSIONName of thehydra.cypher.features.AtomFeatures.caseExpressionfield.java.lang.BooleancaseExpressionCASE expressionsjava.lang.BooleancountThe COUNT (*) expressionstatic NameCOUNTName of thehydra.cypher.features.AtomFeatures.countfield.static NameEXISTENTIAL_SUBQUERYName of thehydra.cypher.features.AtomFeatures.existentialSubqueryfield.java.lang.BooleanexistentialSubqueryExistential subqueriesstatic NameFUNCTION_INVOCATIONName of thehydra.cypher.features.AtomFeatures.functionInvocationfield.java.lang.BooleanfunctionInvocationFunction invocationjava.lang.BooleanparameterParameter expressionsstatic NamePARAMETERName of thehydra.cypher.features.AtomFeatures.parameterfield.static NamePATTERN_COMPREHENSIONName of thehydra.cypher.features.AtomFeatures.patternComprehensionfield.static NamePATTERN_PREDICATEName of thehydra.cypher.features.AtomFeatures.patternPredicatefield.java.lang.BooleanpatternComprehensionPattern comprehensionsjava.lang.BooleanpatternPredicateRelationship patterns as subexpressionsstatic NameTYPE_Name of thehydra.cypher.features.AtomFeaturestype.java.lang.BooleanvariableVariable expressions (note: included by most if not all implementations).static NameVARIABLEName of thehydra.cypher.features.AtomFeatures.variablefield.
-
Constructor Summary
Constructors Constructor Description AtomFeatures(java.lang.Boolean caseExpression, java.lang.Boolean count, java.lang.Boolean existentialSubquery, java.lang.Boolean functionInvocation, java.lang.Boolean parameter, java.lang.Boolean patternComprehension, java.lang.Boolean patternPredicate, java.lang.Boolean variable)Constructs an immutableAtomFeatures.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AtomFeatures other)booleanequals(java.lang.Object other)inthashCode()AtomFeatureswithCaseExpression(java.lang.Boolean caseExpression)Returns a copy of thisAtomFeatureswithcaseExpressionreplaced.AtomFeatureswithCount(java.lang.Boolean count)Returns a copy of thisAtomFeatureswithcountreplaced.AtomFeatureswithExistentialSubquery(java.lang.Boolean existentialSubquery)Returns a copy of thisAtomFeatureswithexistentialSubqueryreplaced.AtomFeatureswithFunctionInvocation(java.lang.Boolean functionInvocation)Returns a copy of thisAtomFeatureswithfunctionInvocationreplaced.AtomFeatureswithParameter(java.lang.Boolean parameter)Returns a copy of thisAtomFeatureswithparameterreplaced.AtomFeatureswithPatternComprehension(java.lang.Boolean patternComprehension)Returns a copy of thisAtomFeatureswithpatternComprehensionreplaced.AtomFeatureswithPatternPredicate(java.lang.Boolean patternPredicate)Returns a copy of thisAtomFeatureswithpatternPredicatereplaced.AtomFeatureswithVariable(java.lang.Boolean variable)Returns a copy of thisAtomFeatureswithvariablereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.cypher.features.AtomFeaturestype.
-
CASE_EXPRESSION
public static final Name CASE_EXPRESSION
Name of thehydra.cypher.features.AtomFeatures.caseExpressionfield.
-
COUNT
public static final Name COUNT
Name of thehydra.cypher.features.AtomFeatures.countfield.
-
EXISTENTIAL_SUBQUERY
public static final Name EXISTENTIAL_SUBQUERY
Name of thehydra.cypher.features.AtomFeatures.existentialSubqueryfield.
-
FUNCTION_INVOCATION
public static final Name FUNCTION_INVOCATION
Name of thehydra.cypher.features.AtomFeatures.functionInvocationfield.
-
PARAMETER
public static final Name PARAMETER
Name of thehydra.cypher.features.AtomFeatures.parameterfield.
-
PATTERN_COMPREHENSION
public static final Name PATTERN_COMPREHENSION
Name of thehydra.cypher.features.AtomFeatures.patternComprehensionfield.
-
PATTERN_PREDICATE
public static final Name PATTERN_PREDICATE
Name of thehydra.cypher.features.AtomFeatures.patternPredicatefield.
-
VARIABLE
public static final Name VARIABLE
Name of thehydra.cypher.features.AtomFeatures.variablefield.
-
caseExpression
public final java.lang.Boolean caseExpression
CASE expressions
-
count
public final java.lang.Boolean count
The COUNT (*) expression
-
existentialSubquery
public final java.lang.Boolean existentialSubquery
Existential subqueries
-
functionInvocation
public final java.lang.Boolean functionInvocation
Function invocation
-
parameter
public final java.lang.Boolean parameter
Parameter expressions
-
patternComprehension
public final java.lang.Boolean patternComprehension
Pattern comprehensions
-
patternPredicate
public final java.lang.Boolean patternPredicate
Relationship patterns as subexpressions
-
variable
public final java.lang.Boolean variable
Variable expressions (note: included by most if not all implementations).
-
-
Constructor Detail
-
AtomFeatures
public AtomFeatures(java.lang.Boolean caseExpression, java.lang.Boolean count, java.lang.Boolean existentialSubquery, java.lang.Boolean functionInvocation, java.lang.Boolean parameter, java.lang.Boolean patternComprehension, java.lang.Boolean patternPredicate, java.lang.Boolean variable)Constructs an immutableAtomFeatures.- Parameters:
caseExpression- CASE expressionscount- The COUNT (*) expressionexistentialSubquery- Existential subqueriesfunctionInvocation- Function invocationparameter- Parameter expressionspatternComprehension- Pattern comprehensionspatternPredicate- Relationship patterns as subexpressionsvariable- Variable expressions (note: included by most if not all implementations).
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(AtomFeatures other)
- Specified by:
compareToin interfacejava.lang.Comparable<AtomFeatures>
-
withCaseExpression
public AtomFeatures withCaseExpression(java.lang.Boolean caseExpression)
Returns a copy of thisAtomFeatureswithcaseExpressionreplaced.
-
withCount
public AtomFeatures withCount(java.lang.Boolean count)
Returns a copy of thisAtomFeatureswithcountreplaced.
-
withExistentialSubquery
public AtomFeatures withExistentialSubquery(java.lang.Boolean existentialSubquery)
Returns a copy of thisAtomFeatureswithexistentialSubqueryreplaced.
-
withFunctionInvocation
public AtomFeatures withFunctionInvocation(java.lang.Boolean functionInvocation)
Returns a copy of thisAtomFeatureswithfunctionInvocationreplaced.
-
withParameter
public AtomFeatures withParameter(java.lang.Boolean parameter)
Returns a copy of thisAtomFeatureswithparameterreplaced.
-
withPatternComprehension
public AtomFeatures withPatternComprehension(java.lang.Boolean patternComprehension)
Returns a copy of thisAtomFeatureswithpatternComprehensionreplaced.
-
withPatternPredicate
public AtomFeatures withPatternPredicate(java.lang.Boolean patternPredicate)
Returns a copy of thisAtomFeatureswithpatternPredicatereplaced.
-
withVariable
public AtomFeatures withVariable(java.lang.Boolean variable)
Returns a copy of thisAtomFeatureswithvariablereplaced.
-
-