Package openGql.grammar
Class GraphPattern
- java.lang.Object
-
- openGql.grammar.GraphPattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GraphPattern>
public class GraphPattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<GraphPattern>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameKEEP_CLAUSEName of theopenGql.grammar.GraphPattern.keepClausefield.Optional<PathPatternPrefix>keepClausestatic NameMATCH_MODEName of theopenGql.grammar.GraphPattern.matchModefield.Optional<MatchMode>matchModestatic NamePATH_PATTERNSName of theopenGql.grammar.GraphPattern.pathPatternsfield.java.util.List<PathPattern>pathPatternsstatic NameTYPE_Name of theopenGql.grammar.GraphPatterntype.static NameWHERE_CLAUSEName of theopenGql.grammar.GraphPattern.whereClausefield.Optional<ValueExpression>whereClause
-
Constructor Summary
Constructors Constructor Description GraphPattern(Optional<MatchMode> matchMode, java.util.List<PathPattern> pathPatterns, Optional<PathPatternPrefix> keepClause, Optional<ValueExpression> whereClause)Constructs an immutableGraphPattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GraphPattern other)booleanequals(java.lang.Object other)inthashCode()GraphPatternwithKeepClause(Optional<PathPatternPrefix> keepClause)Returns a copy of thisGraphPatternwithkeepClausereplaced.GraphPatternwithMatchMode(Optional<MatchMode> matchMode)Returns a copy of thisGraphPatternwithmatchModereplaced.GraphPatternwithPathPatterns(java.util.List<PathPattern> pathPatterns)Returns a copy of thisGraphPatternwithpathPatternsreplaced.GraphPatternwithWhereClause(Optional<ValueExpression> whereClause)Returns a copy of thisGraphPatternwithwhereClausereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.GraphPatterntype.
-
MATCH_MODE
public static final Name MATCH_MODE
Name of theopenGql.grammar.GraphPattern.matchModefield.
-
PATH_PATTERNS
public static final Name PATH_PATTERNS
Name of theopenGql.grammar.GraphPattern.pathPatternsfield.
-
KEEP_CLAUSE
public static final Name KEEP_CLAUSE
Name of theopenGql.grammar.GraphPattern.keepClausefield.
-
WHERE_CLAUSE
public static final Name WHERE_CLAUSE
Name of theopenGql.grammar.GraphPattern.whereClausefield.
-
pathPatterns
public final java.util.List<PathPattern> pathPatterns
-
keepClause
public final Optional<PathPatternPrefix> keepClause
-
whereClause
public final Optional<ValueExpression> whereClause
-
-
Constructor Detail
-
GraphPattern
public GraphPattern(Optional<MatchMode> matchMode, java.util.List<PathPattern> pathPatterns, Optional<PathPatternPrefix> keepClause, Optional<ValueExpression> whereClause)
Constructs an immutableGraphPattern.
-
-
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(GraphPattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<GraphPattern>
-
withMatchMode
public GraphPattern withMatchMode(Optional<MatchMode> matchMode)
Returns a copy of thisGraphPatternwithmatchModereplaced.
-
withPathPatterns
public GraphPattern withPathPatterns(java.util.List<PathPattern> pathPatterns)
Returns a copy of thisGraphPatternwithpathPatternsreplaced.
-
withKeepClause
public GraphPattern withKeepClause(Optional<PathPatternPrefix> keepClause)
Returns a copy of thisGraphPatternwithkeepClausereplaced.
-
withWhereClause
public GraphPattern withWhereClause(Optional<ValueExpression> whereClause)
Returns a copy of thisGraphPatternwithwhereClausereplaced.
-
-