Package openGql.grammar
Class DisjunctiveExpr
- java.lang.Object
-
- openGql.grammar.DisjunctiveExpr
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DisjunctiveExpr>
public class DisjunctiveExpr extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<DisjunctiveExpr>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description ValueExpressionleftstatic NameLEFTName of theopenGql.grammar.DisjunctiveExpr.leftfield.DisjunctiveOperatoroperatorstatic NameOPERATORName of theopenGql.grammar.DisjunctiveExpr.operatorfield.ValueExpressionrightstatic NameRIGHTName of theopenGql.grammar.DisjunctiveExpr.rightfield.static NameTYPE_Name of theopenGql.grammar.DisjunctiveExprtype.
-
Constructor Summary
Constructors Constructor Description DisjunctiveExpr(ValueExpression left, DisjunctiveOperator operator, ValueExpression right)Constructs an immutableDisjunctiveExpr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DisjunctiveExpr other)booleanequals(java.lang.Object other)inthashCode()DisjunctiveExprwithLeft(ValueExpression left)Returns a copy of thisDisjunctiveExprwithleftreplaced.DisjunctiveExprwithOperator(DisjunctiveOperator operator)Returns a copy of thisDisjunctiveExprwithoperatorreplaced.DisjunctiveExprwithRight(ValueExpression right)Returns a copy of thisDisjunctiveExprwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.DisjunctiveExprtype.
-
LEFT
public static final Name LEFT
Name of theopenGql.grammar.DisjunctiveExpr.leftfield.
-
OPERATOR
public static final Name OPERATOR
Name of theopenGql.grammar.DisjunctiveExpr.operatorfield.
-
RIGHT
public static final Name RIGHT
Name of theopenGql.grammar.DisjunctiveExpr.rightfield.
-
left
public final ValueExpression left
-
operator
public final DisjunctiveOperator operator
-
right
public final ValueExpression right
-
-
Constructor Detail
-
DisjunctiveExpr
public DisjunctiveExpr(ValueExpression left, DisjunctiveOperator operator, ValueExpression right)
Constructs an immutableDisjunctiveExpr.
-
-
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(DisjunctiveExpr other)
- Specified by:
compareToin interfacejava.lang.Comparable<DisjunctiveExpr>
-
withLeft
public DisjunctiveExpr withLeft(ValueExpression left)
Returns a copy of thisDisjunctiveExprwithleftreplaced.
-
withOperator
public DisjunctiveExpr withOperator(DisjunctiveOperator operator)
Returns a copy of thisDisjunctiveExprwithoperatorreplaced.
-
withRight
public DisjunctiveExpr withRight(ValueExpression right)
Returns a copy of thisDisjunctiveExprwithrightreplaced.
-
-