Package openGql.grammar
Class PathElementList
- java.lang.Object
-
- openGql.grammar.PathElementList
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathElementList>
public class PathElementList extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PathElementList>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PrimaryValueExpressionstartstatic NameSTARTName of theopenGql.grammar.PathElementList.startfield.java.util.List<PathElementListStep>stepsstatic NameSTEPSName of theopenGql.grammar.PathElementList.stepsfield.static NameTYPE_Name of theopenGql.grammar.PathElementListtype.
-
Constructor Summary
Constructors Constructor Description PathElementList(PrimaryValueExpression start, java.util.List<PathElementListStep> steps)Constructs an immutablePathElementList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PathElementList other)booleanequals(java.lang.Object other)inthashCode()PathElementListwithStart(PrimaryValueExpression start)Returns a copy of thisPathElementListwithstartreplaced.PathElementListwithSteps(java.util.List<PathElementListStep> steps)Returns a copy of thisPathElementListwithstepsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.PathElementListtype.
-
START
public static final Name START
Name of theopenGql.grammar.PathElementList.startfield.
-
STEPS
public static final Name STEPS
Name of theopenGql.grammar.PathElementList.stepsfield.
-
start
public final PrimaryValueExpression start
-
steps
public final java.util.List<PathElementListStep> steps
-
-
Constructor Detail
-
PathElementList
public PathElementList(PrimaryValueExpression start, java.util.List<PathElementListStep> steps)
Constructs an immutablePathElementList.
-
-
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(PathElementList other)
- Specified by:
compareToin interfacejava.lang.Comparable<PathElementList>
-
withStart
public PathElementList withStart(PrimaryValueExpression start)
Returns a copy of thisPathElementListwithstartreplaced.
-
withSteps
public PathElementList withSteps(java.util.List<PathElementListStep> steps)
Returns a copy of thisPathElementListwithstepsreplaced.
-
-