Package openGql.grammar
Class SignedNumericValueExpression
- java.lang.Object
-
- openGql.grammar.SignedNumericValueExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SignedNumericValueExpression>
public class SignedNumericValueExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SignedNumericValueExpression>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description NumericValueExpressionexpressionstatic NameEXPRESSIONName of theopenGql.grammar.SignedNumericValueExpression.expressionfield.Signsignstatic NameSIGNName of theopenGql.grammar.SignedNumericValueExpression.signfield.static NameTYPE_Name of theopenGql.grammar.SignedNumericValueExpressiontype.
-
Constructor Summary
Constructors Constructor Description SignedNumericValueExpression(Sign sign, NumericValueExpression expression)Constructs an immutableSignedNumericValueExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SignedNumericValueExpression other)booleanequals(java.lang.Object other)inthashCode()SignedNumericValueExpressionwithExpression(NumericValueExpression expression)Returns a copy of thisSignedNumericValueExpressionwithexpressionreplaced.SignedNumericValueExpressionwithSign(Sign sign)Returns a copy of thisSignedNumericValueExpressionwithsignreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SignedNumericValueExpressiontype.
-
SIGN
public static final Name SIGN
Name of theopenGql.grammar.SignedNumericValueExpression.signfield.
-
EXPRESSION
public static final Name EXPRESSION
Name of theopenGql.grammar.SignedNumericValueExpression.expressionfield.
-
sign
public final Sign sign
-
expression
public final NumericValueExpression expression
-
-
Constructor Detail
-
SignedNumericValueExpression
public SignedNumericValueExpression(Sign sign, NumericValueExpression expression)
Constructs an immutableSignedNumericValueExpression.
-
-
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(SignedNumericValueExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<SignedNumericValueExpression>
-
withSign
public SignedNumericValueExpression withSign(Sign sign)
Returns a copy of thisSignedNumericValueExpressionwithsignreplaced.
-
withExpression
public SignedNumericValueExpression withExpression(NumericValueExpression expression)
Returns a copy of thisSignedNumericValueExpressionwithexpressionreplaced.
-
-