Package openGql.grammar
Class DisjunctionLabelExpression
- java.lang.Object
-
- openGql.grammar.DisjunctionLabelExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DisjunctionLabelExpression>
public class DisjunctionLabelExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<DisjunctionLabelExpression>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description LabelExpressionleftstatic NameLEFTName of theopenGql.grammar.DisjunctionLabelExpression.leftfield.LabelExpressionrightstatic NameRIGHTName of theopenGql.grammar.DisjunctionLabelExpression.rightfield.static NameTYPE_Name of theopenGql.grammar.DisjunctionLabelExpressiontype.
-
Constructor Summary
Constructors Constructor Description DisjunctionLabelExpression(LabelExpression left, LabelExpression right)Constructs an immutableDisjunctionLabelExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DisjunctionLabelExpression other)booleanequals(java.lang.Object other)inthashCode()DisjunctionLabelExpressionwithLeft(LabelExpression left)Returns a copy of thisDisjunctionLabelExpressionwithleftreplaced.DisjunctionLabelExpressionwithRight(LabelExpression right)Returns a copy of thisDisjunctionLabelExpressionwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.DisjunctionLabelExpressiontype.
-
LEFT
public static final Name LEFT
Name of theopenGql.grammar.DisjunctionLabelExpression.leftfield.
-
RIGHT
public static final Name RIGHT
Name of theopenGql.grammar.DisjunctionLabelExpression.rightfield.
-
left
public final LabelExpression left
-
right
public final LabelExpression right
-
-
Constructor Detail
-
DisjunctionLabelExpression
public DisjunctionLabelExpression(LabelExpression left, LabelExpression right)
Constructs an immutableDisjunctionLabelExpression.
-
-
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(DisjunctionLabelExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<DisjunctionLabelExpression>
-
withLeft
public DisjunctionLabelExpression withLeft(LabelExpression left)
Returns a copy of thisDisjunctionLabelExpressionwithleftreplaced.
-
withRight
public DisjunctionLabelExpression withRight(LabelExpression right)
Returns a copy of thisDisjunctionLabelExpressionwithrightreplaced.
-
-