Package openGql.grammar
Class SignedExpr
- java.lang.Object
-
- openGql.grammar.SignedExpr
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SignedExpr>
public class SignedExpr extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SignedExpr>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Signsignstatic NameSIGNName of theopenGql.grammar.SignedExpr.signfield.static NameTYPE_Name of theopenGql.grammar.SignedExprtype.static NameVALUE_EXPRESSIONName of theopenGql.grammar.SignedExpr.valueExpressionfield.ValueExpressionvalueExpression
-
Constructor Summary
Constructors Constructor Description SignedExpr(Sign sign, ValueExpression valueExpression)Constructs an immutableSignedExpr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SignedExpr other)booleanequals(java.lang.Object other)inthashCode()SignedExprwithSign(Sign sign)Returns a copy of thisSignedExprwithsignreplaced.SignedExprwithValueExpression(ValueExpression valueExpression)Returns a copy of thisSignedExprwithvalueExpressionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SignedExprtype.
-
SIGN
public static final Name SIGN
Name of theopenGql.grammar.SignedExpr.signfield.
-
VALUE_EXPRESSION
public static final Name VALUE_EXPRESSION
Name of theopenGql.grammar.SignedExpr.valueExpressionfield.
-
sign
public final Sign sign
-
valueExpression
public final ValueExpression valueExpression
-
-
Constructor Detail
-
SignedExpr
public SignedExpr(Sign sign, ValueExpression valueExpression)
Constructs an immutableSignedExpr.
-
-
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(SignedExpr other)
- Specified by:
compareToin interfacejava.lang.Comparable<SignedExpr>
-
withSign
public SignedExpr withSign(Sign sign)
Returns a copy of thisSignedExprwithsignreplaced.
-
withValueExpression
public SignedExpr withValueExpression(ValueExpression valueExpression)
Returns a copy of thisSignedExprwithvalueExpressionreplaced.
-
-