Package openGql.grammar
Class ConcatenationExpr
- java.lang.Object
-
- openGql.grammar.ConcatenationExpr
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConcatenationExpr>
public class ConcatenationExpr extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ConcatenationExpr>
A GQL concatenation expression- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConcatenationExpr.BuilderA fluent builder forConcatenationExpr.
-
Field Summary
Fields Modifier and Type Field Description ValueExpressionleftstatic NameLEFTName of theopenGql.grammar.ConcatenationExpr.leftfield.ValueExpressionrightstatic NameRIGHTName of theopenGql.grammar.ConcatenationExpr.rightfield.static NameTYPE_Name of theopenGql.grammar.ConcatenationExprtype.
-
Constructor Summary
Constructors Constructor Description ConcatenationExpr(ValueExpression left, ValueExpression right)Constructs an immutableConcatenationExpr.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConcatenationExpr.Builderbuilder()Creates a new fluent builder forConcatenationExpr.intcompareTo(ConcatenationExpr other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()ConcatenationExprwithLeft(ValueExpression left)Returns a copy of thisConcatenationExprwithleftreplaced.ConcatenationExprwithRight(ValueExpression right)Returns a copy of thisConcatenationExprwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ConcatenationExprtype.
-
LEFT
public static final Name LEFT
Name of theopenGql.grammar.ConcatenationExpr.leftfield.
-
RIGHT
public static final Name RIGHT
Name of theopenGql.grammar.ConcatenationExpr.rightfield.
-
left
public final ValueExpression left
-
right
public final ValueExpression right
-
-
Constructor Detail
-
ConcatenationExpr
public ConcatenationExpr(ValueExpression left, ValueExpression right)
Constructs an immutableConcatenationExpr.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ConcatenationExpr other)
- Specified by:
compareToin interfacejava.lang.Comparable<ConcatenationExpr>
-
withLeft
public ConcatenationExpr withLeft(ValueExpression left)
Returns a copy of thisConcatenationExprwithleftreplaced.
-
withRight
public ConcatenationExpr withRight(ValueExpression right)
Returns a copy of thisConcatenationExprwithrightreplaced.
-
builder
public static ConcatenationExpr.Builder builder()
Creates a new fluent builder forConcatenationExpr.
-
-