public abstract class ScopeExpression extends java.lang.Object implements Expression<Scope>
ScopeExpression.Applies
enum will apply,
otherwise the number of edges on the target graph must match the number of edges in the expression.Modifier and Type | Class and Description |
---|---|
static class |
ScopeExpression.Applies |
Modifier and Type | Field and Description |
---|---|
static PathScopeExpression |
ALL
Where this expression applies between ALL edges between two nodes.
|
static PathScopeExpression |
ANY
Where this expression applies between ANY edge between two nodes.
|
protected ScopeExpression.Applies |
applies |
protected boolean |
capture |
static PathScopeExpression |
EACH |
static PathScopeExpression |
NO_CAPTURE
Match the edge, but do not capture it.
|
Modifier | Constructor and Description |
---|---|
protected |
ScopeExpression() |
|
ScopeExpression(boolean capture,
ScopeExpression.Applies applies) |
protected |
ScopeExpression(ScopeExpression.Applies applies) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsAll()
True if there is at least one edge between the candidate nodes.
|
boolean |
appliesToAllPaths()
This match must apply to all the edges between the two candidate nodes for the match to be true.
|
boolean |
appliesToAnyPath()
This match must apply to at least one edge between the two candidate nodes for the match to be true.
|
boolean |
appliesToEachPath()
This match is applied to each edge, at least one edge between the two candidate nodes must apply for the match
to be true.
|
ScopeExpression.Applies |
getApplies() |
boolean |
isCapture() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
applies
public static final PathScopeExpression ANY
public static final PathScopeExpression ALL
public static final PathScopeExpression EACH
public static final PathScopeExpression NO_CAPTURE
protected boolean capture
protected ScopeExpression.Applies applies
protected ScopeExpression()
protected ScopeExpression(ScopeExpression.Applies applies)
public ScopeExpression(boolean capture, ScopeExpression.Applies applies)
public boolean isCapture()
public boolean appliesToAllPaths()
public boolean appliesToAnyPath()
The first to apply is captured.
public boolean appliesToEachPath()
Each edge that applies is captured.
public boolean acceptsAll()
public ScopeExpression.Applies getApplies()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.