Package openGql.grammar
Class CastSpecification
- java.lang.Object
-
- openGql.grammar.CastSpecification
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CastSpecification>
public class CastSpecification extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<CastSpecification>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description CastOperandoperandstatic NameOPERANDName of theopenGql.grammar.CastSpecification.operandfield.ValueTypetargetstatic NameTARGETName of theopenGql.grammar.CastSpecification.targetfield.static NameTYPE_Name of theopenGql.grammar.CastSpecificationtype.
-
Constructor Summary
Constructors Constructor Description CastSpecification(CastOperand operand, ValueType target)Constructs an immutableCastSpecification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CastSpecification other)booleanequals(java.lang.Object other)inthashCode()CastSpecificationwithOperand(CastOperand operand)Returns a copy of thisCastSpecificationwithoperandreplaced.CastSpecificationwithTarget(ValueType target)Returns a copy of thisCastSpecificationwithtargetreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.CastSpecificationtype.
-
OPERAND
public static final Name OPERAND
Name of theopenGql.grammar.CastSpecification.operandfield.
-
TARGET
public static final Name TARGET
Name of theopenGql.grammar.CastSpecification.targetfield.
-
operand
public final CastOperand operand
-
target
public final ValueType target
-
-
Constructor Detail
-
CastSpecification
public CastSpecification(CastOperand operand, ValueType target)
Constructs an immutableCastSpecification.
-
-
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(CastSpecification other)
- Specified by:
compareToin interfacejava.lang.Comparable<CastSpecification>
-
withOperand
public CastSpecification withOperand(CastOperand operand)
Returns a copy of thisCastSpecificationwithoperandreplaced.
-
withTarget
public CastSpecification withTarget(ValueType target)
Returns a copy of thisCastSpecificationwithtargetreplaced.
-
-