public enum Evaluation extends Enum<Evaluation>
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.Evaluator
Enum Constant and Description |
---|
EXCLUDE_AND_CONTINUE |
EXCLUDE_AND_PRUNE |
INCLUDE_AND_CONTINUE |
INCLUDE_AND_PRUNE |
Modifier and Type | Method and Description |
---|---|
boolean |
continues() |
boolean |
includes() |
static Evaluation |
of(boolean includes,
boolean continues)
|
static Evaluation |
ofContinues(boolean continues)
Returns an
Evaluation for the given continues , meaning
whether or not to continue further down a TraversalBranch in the
traversal. |
static Evaluation |
ofIncludes(boolean includes)
Returns an
Evaluation for the given includes , meaning
whether or not to include a TraversalBranch in the traversal
result or not. |
static Evaluation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Evaluation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Evaluation INCLUDE_AND_CONTINUE
public static final Evaluation INCLUDE_AND_PRUNE
public static final Evaluation EXCLUDE_AND_CONTINUE
public static final Evaluation EXCLUDE_AND_PRUNE
public static Evaluation[] values()
for (Evaluation c : Evaluation.values()) System.out.println(c);
public static Evaluation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean includes()
TraversalBranch
this outcome was
generated for should be included in the traversal result.public boolean continues()
TraversalBranch
this outcome was generator for.public static Evaluation of(boolean includes, boolean continues)
includes
- whether or not to include the TraversalBranch
in the traversal result.continues
- whether or not to continue down the
TraversalBranch
.Evaluation
representing includes
and continues
.public static Evaluation ofIncludes(boolean includes)
Evaluation
for the given includes
, meaning
whether or not to include a TraversalBranch
in the traversal
result or not. The returned evaluation will always return true
for continues()
.includes
- whether or not to include a TraversalBranch
in the traversal result.Evaluation
representing whether or not to include
a TraversalBranch
in the traversal result.public static Evaluation ofContinues(boolean continues)
Evaluation
for the given continues
, meaning
whether or not to continue further down a TraversalBranch
in the
traversal. The returned evaluation will always return true for
includes()
.continues
- whether or not to continue further down a
TraversalBranch
in the traversal.Evaluation
representing whether or not to continue
further down a TraversalBranch
in the traversal.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.