Package openGql.grammar
Class DependentValueExpression
- java.lang.Object
-
- openGql.grammar.DependentValueExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DependentValueExpression>
public class DependentValueExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<DependentValueExpression>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameNUMERIC_VALUEName of theopenGql.grammar.DependentValueExpression.numericValuefield.NumericValueExpressionnumericValuestatic NameSET_QUANTIFIERName of theopenGql.grammar.DependentValueExpression.setQuantifierfield.Optional<SetQuantifier>setQuantifierstatic NameTYPE_Name of theopenGql.grammar.DependentValueExpressiontype.
-
Constructor Summary
Constructors Constructor Description DependentValueExpression(Optional<SetQuantifier> setQuantifier, NumericValueExpression numericValue)Constructs an immutableDependentValueExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DependentValueExpression other)booleanequals(java.lang.Object other)inthashCode()DependentValueExpressionwithNumericValue(NumericValueExpression numericValue)Returns a copy of thisDependentValueExpressionwithnumericValuereplaced.DependentValueExpressionwithSetQuantifier(Optional<SetQuantifier> setQuantifier)Returns a copy of thisDependentValueExpressionwithsetQuantifierreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.DependentValueExpressiontype.
-
SET_QUANTIFIER
public static final Name SET_QUANTIFIER
Name of theopenGql.grammar.DependentValueExpression.setQuantifierfield.
-
NUMERIC_VALUE
public static final Name NUMERIC_VALUE
Name of theopenGql.grammar.DependentValueExpression.numericValuefield.
-
setQuantifier
public final Optional<SetQuantifier> setQuantifier
-
numericValue
public final NumericValueExpression numericValue
-
-
Constructor Detail
-
DependentValueExpression
public DependentValueExpression(Optional<SetQuantifier> setQuantifier, NumericValueExpression numericValue)
Constructs an immutableDependentValueExpression.
-
-
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(DependentValueExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<DependentValueExpression>
-
withSetQuantifier
public DependentValueExpression withSetQuantifier(Optional<SetQuantifier> setQuantifier)
Returns a copy of thisDependentValueExpressionwithsetQuantifierreplaced.
-
withNumericValue
public DependentValueExpression withNumericValue(NumericValueExpression numericValue)
Returns a copy of thisDependentValueExpressionwithnumericValuereplaced.
-
-