Package openGql.grammar
Class QuantifiedPathPrimary
- java.lang.Object
-
- openGql.grammar.QuantifiedPathPrimary
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<QuantifiedPathPrimary>
public class QuantifiedPathPrimary extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<QuantifiedPathPrimary>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PathPrimaryprimarystatic NamePRIMARYName of theopenGql.grammar.QuantifiedPathPrimary.primaryfield.GraphPatternQuantifierquantifierstatic NameQUANTIFIERName of theopenGql.grammar.QuantifiedPathPrimary.quantifierfield.static NameTYPE_Name of theopenGql.grammar.QuantifiedPathPrimarytype.
-
Constructor Summary
Constructors Constructor Description QuantifiedPathPrimary(PathPrimary primary, GraphPatternQuantifier quantifier)Constructs an immutableQuantifiedPathPrimary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QuantifiedPathPrimary other)booleanequals(java.lang.Object other)inthashCode()QuantifiedPathPrimarywithPrimary(PathPrimary primary)Returns a copy of thisQuantifiedPathPrimarywithprimaryreplaced.QuantifiedPathPrimarywithQuantifier(GraphPatternQuantifier quantifier)Returns a copy of thisQuantifiedPathPrimarywithquantifierreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.QuantifiedPathPrimarytype.
-
PRIMARY
public static final Name PRIMARY
Name of theopenGql.grammar.QuantifiedPathPrimary.primaryfield.
-
QUANTIFIER
public static final Name QUANTIFIER
Name of theopenGql.grammar.QuantifiedPathPrimary.quantifierfield.
-
primary
public final PathPrimary primary
-
quantifier
public final GraphPatternQuantifier quantifier
-
-
Constructor Detail
-
QuantifiedPathPrimary
public QuantifiedPathPrimary(PathPrimary primary, GraphPatternQuantifier quantifier)
Constructs an immutableQuantifiedPathPrimary.
-
-
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(QuantifiedPathPrimary other)
- Specified by:
compareToin interfacejava.lang.Comparable<QuantifiedPathPrimary>
-
withPrimary
public QuantifiedPathPrimary withPrimary(PathPrimary primary)
Returns a copy of thisQuantifiedPathPrimarywithprimaryreplaced.
-
withQuantifier
public QuantifiedPathPrimary withQuantifier(GraphPatternQuantifier quantifier)
Returns a copy of thisQuantifiedPathPrimarywithquantifierreplaced.
-
-