Package openGql.grammar
Class InsertPathPattern
- java.lang.Object
-
- openGql.grammar.InsertPathPattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InsertPathPattern>
public class InsertPathPattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<InsertPathPattern>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameEDGES_AND_NODESName of theopenGql.grammar.InsertPathPattern.edgesAndNodesfield.java.util.List<InsertEdgeAndNode>edgesAndNodesstatic NameSTART_NODEName of theopenGql.grammar.InsertPathPattern.startNodefield.Optional<InsertElementPatternFiller>startNodestatic NameTYPE_Name of theopenGql.grammar.InsertPathPatterntype.
-
Constructor Summary
Constructors Constructor Description InsertPathPattern(Optional<InsertElementPatternFiller> startNode, java.util.List<InsertEdgeAndNode> edgesAndNodes)Constructs an immutableInsertPathPattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(InsertPathPattern other)booleanequals(java.lang.Object other)inthashCode()InsertPathPatternwithEdgesAndNodes(java.util.List<InsertEdgeAndNode> edgesAndNodes)Returns a copy of thisInsertPathPatternwithedgesAndNodesreplaced.InsertPathPatternwithStartNode(Optional<InsertElementPatternFiller> startNode)Returns a copy of thisInsertPathPatternwithstartNodereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.InsertPathPatterntype.
-
START_NODE
public static final Name START_NODE
Name of theopenGql.grammar.InsertPathPattern.startNodefield.
-
EDGES_AND_NODES
public static final Name EDGES_AND_NODES
Name of theopenGql.grammar.InsertPathPattern.edgesAndNodesfield.
-
startNode
public final Optional<InsertElementPatternFiller> startNode
-
edgesAndNodes
public final java.util.List<InsertEdgeAndNode> edgesAndNodes
-
-
Constructor Detail
-
InsertPathPattern
public InsertPathPattern(Optional<InsertElementPatternFiller> startNode, java.util.List<InsertEdgeAndNode> edgesAndNodes)
Constructs an immutableInsertPathPattern.
-
-
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(InsertPathPattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<InsertPathPattern>
-
withStartNode
public InsertPathPattern withStartNode(Optional<InsertElementPatternFiller> startNode)
Returns a copy of thisInsertPathPatternwithstartNodereplaced.
-
withEdgesAndNodes
public InsertPathPattern withEdgesAndNodes(java.util.List<InsertEdgeAndNode> edgesAndNodes)
Returns a copy of thisInsertPathPatternwithedgesAndNodesreplaced.
-
-