Package openGql.grammar
Class SubCharacterOrByteString
- java.lang.Object
-
- openGql.grammar.SubCharacterOrByteString
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubCharacterOrByteString>
public class SubCharacterOrByteString extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SubCharacterOrByteString>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Sidesidestatic NameSIDEName of theopenGql.grammar.SubCharacterOrByteString.sidefield.static NameSTRING_LENGTHName of theopenGql.grammar.SubCharacterOrByteString.stringLengthfield.NumericValueExpressionstringLengthstatic NameTYPE_Name of theopenGql.grammar.SubCharacterOrByteStringtype.static NameVALUE_EXPRESSIONName of theopenGql.grammar.SubCharacterOrByteString.valueExpressionfield.ValueExpressionvalueExpression
-
Constructor Summary
Constructors Constructor Description SubCharacterOrByteString(Side side, ValueExpression valueExpression, NumericValueExpression stringLength)Constructs an immutableSubCharacterOrByteString.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SubCharacterOrByteString other)booleanequals(java.lang.Object other)inthashCode()SubCharacterOrByteStringwithSide(Side side)Returns a copy of thisSubCharacterOrByteStringwithsidereplaced.SubCharacterOrByteStringwithStringLength(NumericValueExpression stringLength)Returns a copy of thisSubCharacterOrByteStringwithstringLengthreplaced.SubCharacterOrByteStringwithValueExpression(ValueExpression valueExpression)Returns a copy of thisSubCharacterOrByteStringwithvalueExpressionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SubCharacterOrByteStringtype.
-
SIDE
public static final Name SIDE
Name of theopenGql.grammar.SubCharacterOrByteString.sidefield.
-
VALUE_EXPRESSION
public static final Name VALUE_EXPRESSION
Name of theopenGql.grammar.SubCharacterOrByteString.valueExpressionfield.
-
STRING_LENGTH
public static final Name STRING_LENGTH
Name of theopenGql.grammar.SubCharacterOrByteString.stringLengthfield.
-
side
public final Side side
-
valueExpression
public final ValueExpression valueExpression
-
stringLength
public final NumericValueExpression stringLength
-
-
Constructor Detail
-
SubCharacterOrByteString
public SubCharacterOrByteString(Side side, ValueExpression valueExpression, NumericValueExpression stringLength)
Constructs an immutableSubCharacterOrByteString.
-
-
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(SubCharacterOrByteString other)
- Specified by:
compareToin interfacejava.lang.Comparable<SubCharacterOrByteString>
-
withSide
public SubCharacterOrByteString withSide(Side side)
Returns a copy of thisSubCharacterOrByteStringwithsidereplaced.
-
withValueExpression
public SubCharacterOrByteString withValueExpression(ValueExpression valueExpression)
Returns a copy of thisSubCharacterOrByteStringwithvalueExpressionreplaced.
-
withStringLength
public SubCharacterOrByteString withStringLength(NumericValueExpression stringLength)
Returns a copy of thisSubCharacterOrByteStringwithstringLengthreplaced.
-
-