Package openGql.grammar
Class SimplifiedConjunction
- java.lang.Object
-
- openGql.grammar.SimplifiedConjunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SimplifiedConjunction>
public class SimplifiedConjunction extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SimplifiedConjunction>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description SimplifiedFactorLowleftstatic NameLEFTName of theopenGql.grammar.SimplifiedConjunction.leftfield.SimplifiedFactorHighrightstatic NameRIGHTName of theopenGql.grammar.SimplifiedConjunction.rightfield.static NameTYPE_Name of theopenGql.grammar.SimplifiedConjunctiontype.
-
Constructor Summary
Constructors Constructor Description SimplifiedConjunction(SimplifiedFactorLow left, SimplifiedFactorHigh right)Constructs an immutableSimplifiedConjunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SimplifiedConjunction other)booleanequals(java.lang.Object other)inthashCode()SimplifiedConjunctionwithLeft(SimplifiedFactorLow left)Returns a copy of thisSimplifiedConjunctionwithleftreplaced.SimplifiedConjunctionwithRight(SimplifiedFactorHigh right)Returns a copy of thisSimplifiedConjunctionwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SimplifiedConjunctiontype.
-
LEFT
public static final Name LEFT
Name of theopenGql.grammar.SimplifiedConjunction.leftfield.
-
RIGHT
public static final Name RIGHT
Name of theopenGql.grammar.SimplifiedConjunction.rightfield.
-
left
public final SimplifiedFactorLow left
-
right
public final SimplifiedFactorHigh right
-
-
Constructor Detail
-
SimplifiedConjunction
public SimplifiedConjunction(SimplifiedFactorLow left, SimplifiedFactorHigh right)
Constructs an immutableSimplifiedConjunction.
-
-
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(SimplifiedConjunction other)
- Specified by:
compareToin interfacejava.lang.Comparable<SimplifiedConjunction>
-
withLeft
public SimplifiedConjunction withLeft(SimplifiedFactorLow left)
Returns a copy of thisSimplifiedConjunctionwithleftreplaced.
-
withRight
public SimplifiedConjunction withRight(SimplifiedFactorHigh right)
Returns a copy of thisSimplifiedConjunctionwithrightreplaced.
-
-