Package com.gdblab.pathAlgebra.syntax
Class PathPattern
- java.lang.Object
-
- com.gdblab.pathAlgebra.syntax.PathPattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathPattern>
public class PathPattern extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PathPattern>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Optional<ComplexCondition>conditionstatic NameCONDITIONName of thecom.gdblab.pathAlgebra.syntax.PathPattern.conditionfield.EdgePatternedgestatic NameEDGEName of thecom.gdblab.pathAlgebra.syntax.PathPattern.edgefield.static NameEND_NODEName of thecom.gdblab.pathAlgebra.syntax.PathPattern.endNodefield.NodePatternendNodestatic NamePATH_NAMEName of thecom.gdblab.pathAlgebra.syntax.PathPattern.pathNamefield.java.lang.StringpathNamestatic NameSTART_NODEName of thecom.gdblab.pathAlgebra.syntax.PathPattern.startNodefield.NodePatternstartNodestatic NameTYPE_Name of thecom.gdblab.pathAlgebra.syntax.PathPatterntype.
-
Constructor Summary
Constructors Constructor Description PathPattern(java.lang.String pathName, NodePattern startNode, EdgePattern edge, NodePattern endNode, Optional<ComplexCondition> condition)Constructs an immutablePathPattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PathPattern other)booleanequals(java.lang.Object other)inthashCode()PathPatternwithCondition(Optional<ComplexCondition> condition)Returns a copy of thisPathPatternwithconditionreplaced.PathPatternwithEdge(EdgePattern edge)Returns a copy of thisPathPatternwithedgereplaced.PathPatternwithEndNode(NodePattern endNode)Returns a copy of thisPathPatternwithendNodereplaced.PathPatternwithPathName(java.lang.String pathName)Returns a copy of thisPathPatternwithpathNamereplaced.PathPatternwithStartNode(NodePattern startNode)Returns a copy of thisPathPatternwithstartNodereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.syntax.PathPatterntype.
-
PATH_NAME
public static final Name PATH_NAME
Name of thecom.gdblab.pathAlgebra.syntax.PathPattern.pathNamefield.
-
START_NODE
public static final Name START_NODE
Name of thecom.gdblab.pathAlgebra.syntax.PathPattern.startNodefield.
-
EDGE
public static final Name EDGE
Name of thecom.gdblab.pathAlgebra.syntax.PathPattern.edgefield.
-
END_NODE
public static final Name END_NODE
Name of thecom.gdblab.pathAlgebra.syntax.PathPattern.endNodefield.
-
CONDITION
public static final Name CONDITION
Name of thecom.gdblab.pathAlgebra.syntax.PathPattern.conditionfield.
-
pathName
public final java.lang.String pathName
-
startNode
public final NodePattern startNode
-
edge
public final EdgePattern edge
-
endNode
public final NodePattern endNode
-
condition
public final Optional<ComplexCondition> condition
-
-
Constructor Detail
-
PathPattern
public PathPattern(java.lang.String pathName, NodePattern startNode, EdgePattern edge, NodePattern endNode, Optional<ComplexCondition> condition)Constructs an immutablePathPattern.
-
-
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(PathPattern other)
- Specified by:
compareToin interfacejava.lang.Comparable<PathPattern>
-
withPathName
public PathPattern withPathName(java.lang.String pathName)
Returns a copy of thisPathPatternwithpathNamereplaced.
-
withStartNode
public PathPattern withStartNode(NodePattern startNode)
Returns a copy of thisPathPatternwithstartNodereplaced.
-
withEdge
public PathPattern withEdge(EdgePattern edge)
Returns a copy of thisPathPatternwithedgereplaced.
-
withEndNode
public PathPattern withEndNode(NodePattern endNode)
Returns a copy of thisPathPatternwithendNodereplaced.
-
withCondition
public PathPattern withCondition(Optional<ComplexCondition> condition)
Returns a copy of thisPathPatternwithconditionreplaced.
-
-