Package org.neo4j.graphdb.traversal
Enum Class Evaluation
- All Implemented Interfaces:
Serializable
,Comparable<Evaluation>
,Constable
Outcome of
Evaluator.evaluate(org.neo4j.graphdb.Path)
. An evaluation
can tell the traversal whether or not to continue down that
TraversalBranch
and whether or not to include a
TraversalBranch
in the result of a traversal.- See Also:
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
includes()
static Evaluation
of
(boolean includes, boolean continues) static Evaluation
ofContinues
(boolean continues) Returns anEvaluation
for the givencontinues
, meaning whether or not to continue further down aTraversalBranch
in the traversal.static Evaluation
ofIncludes
(boolean includes) Returns anEvaluation
for the givenincludes
, meaning whether or not to include aTraversalBranch
in the traversal result or not.static Evaluation
Returns the enum constant of this class with the specified name.static Evaluation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCLUDE_AND_CONTINUE
-
INCLUDE_AND_PRUNE
-
EXCLUDE_AND_CONTINUE
-
EXCLUDE_AND_PRUNE
-
-
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
-
includes
public boolean includes()- Returns:
- whether or not the
TraversalBranch
this outcome was generated for should be included in the traversal result.
-
continues
public boolean continues()- Returns:
- whether or not the traversal should continue down the
TraversalBranch
this outcome was generator for.
-
of
- Parameters:
includes
- whether or not to include theTraversalBranch
in the traversal result.continues
- whether or not to continue down theTraversalBranch
.- Returns:
- an
Evaluation
representingincludes
andcontinues
.
-
ofIncludes
Returns anEvaluation
for the givenincludes
, meaning whether or not to include aTraversalBranch
in the traversal result or not. The returned evaluation will always return true forcontinues()
.- Parameters:
includes
- whether or not to include aTraversalBranch
in the traversal result.- Returns:
- an
Evaluation
representing whether or not to include aTraversalBranch
in the traversal result.
-
ofContinues
Returns anEvaluation
for the givencontinues
, meaning whether or not to continue further down aTraversalBranch
in the traversal. The returned evaluation will always return true forincludes()
.- Parameters:
continues
- whether or not to continue further down aTraversalBranch
in the traversal.- Returns:
- an
Evaluation
representing whether or not to continue further down aTraversalBranch
in the traversal.
-