Package hydra.typeScript.syntax
Class AssignmentExpression
- java.lang.Object
-
- hydra.typeScript.syntax.AssignmentExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AssignmentExpression>
public class AssignmentExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AssignmentExpression>
An assignment expression- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssignmentExpression.BuilderA fluent builder forAssignmentExpression.
-
Field Summary
Fields Modifier and Type Field Description Patternleftstatic NameLEFTName of thehydra.typeScript.syntax.AssignmentExpression.leftfield.AssignmentOperatoroperatorstatic NameOPERATORName of thehydra.typeScript.syntax.AssignmentExpression.operatorfield.Expressionrightstatic NameRIGHTName of thehydra.typeScript.syntax.AssignmentExpression.rightfield.static NameTYPE_Name of thehydra.typeScript.syntax.AssignmentExpressiontype.
-
Constructor Summary
Constructors Constructor Description AssignmentExpression(AssignmentOperator operator, Pattern left, Expression right)Constructs an immutableAssignmentExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssignmentExpression.Builderbuilder()Creates a new fluent builder forAssignmentExpression.intcompareTo(AssignmentExpression other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()AssignmentExpressionwithLeft(Pattern left)Returns a copy of thisAssignmentExpressionwithleftreplaced.AssignmentExpressionwithOperator(AssignmentOperator operator)Returns a copy of thisAssignmentExpressionwithoperatorreplaced.AssignmentExpressionwithRight(Expression right)Returns a copy of thisAssignmentExpressionwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.typeScript.syntax.AssignmentExpressiontype.
-
OPERATOR
public static final Name OPERATOR
Name of thehydra.typeScript.syntax.AssignmentExpression.operatorfield.
-
LEFT
public static final Name LEFT
Name of thehydra.typeScript.syntax.AssignmentExpression.leftfield.
-
RIGHT
public static final Name RIGHT
Name of thehydra.typeScript.syntax.AssignmentExpression.rightfield.
-
operator
public final AssignmentOperator operator
-
left
public final Pattern left
-
right
public final Expression right
-
-
Constructor Detail
-
AssignmentExpression
public AssignmentExpression(AssignmentOperator operator, Pattern left, Expression right)
Constructs an immutableAssignmentExpression.
-
-
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(AssignmentExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<AssignmentExpression>
-
withOperator
public AssignmentExpression withOperator(AssignmentOperator operator)
Returns a copy of thisAssignmentExpressionwithoperatorreplaced.
-
withLeft
public AssignmentExpression withLeft(Pattern left)
Returns a copy of thisAssignmentExpressionwithleftreplaced.
-
withRight
public AssignmentExpression withRight(Expression right)
Returns a copy of thisAssignmentExpressionwithrightreplaced.
-
builder
public static AssignmentExpression.Builder builder()
Creates a new fluent builder forAssignmentExpression.
-
-