Package hydra.python.syntax
Class AugAssignment
- java.lang.Object
-
- hydra.python.syntax.AugAssignment
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AugAssignment>
public class AugAssignment extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AugAssignment>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAugAssignment.BuilderA fluent builder forAugAssignment.
-
Field Summary
Fields Modifier and Type Field Description AugAssignaugassignstatic NameAUGASSIGNName of thehydra.python.syntax.AugAssignment.augassignfield.SingleTargetlhsstatic NameLHSName of thehydra.python.syntax.AugAssignment.lhsfield.AnnotatedRhsrhsstatic NameRHSName of thehydra.python.syntax.AugAssignment.rhsfield.static NameTYPE_Name of thehydra.python.syntax.AugAssignmenttype.
-
Constructor Summary
Constructors Constructor Description AugAssignment(SingleTarget lhs, AugAssign augassign, AnnotatedRhs rhs)Constructs an immutableAugAssignment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AugAssignment.Builderbuilder()Creates a new fluent builder forAugAssignment.intcompareTo(AugAssignment other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()AugAssignmentwithAugassign(AugAssign augassign)Returns a copy of thisAugAssignmentwithaugassignreplaced.AugAssignmentwithLhs(SingleTarget lhs)Returns a copy of thisAugAssignmentwithlhsreplaced.AugAssignmentwithRhs(AnnotatedRhs rhs)Returns a copy of thisAugAssignmentwithrhsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.python.syntax.AugAssignmenttype.
-
LHS
public static final Name LHS
Name of thehydra.python.syntax.AugAssignment.lhsfield.
-
AUGASSIGN
public static final Name AUGASSIGN
Name of thehydra.python.syntax.AugAssignment.augassignfield.
-
RHS
public static final Name RHS
Name of thehydra.python.syntax.AugAssignment.rhsfield.
-
lhs
public final SingleTarget lhs
-
augassign
public final AugAssign augassign
-
rhs
public final AnnotatedRhs rhs
-
-
Constructor Detail
-
AugAssignment
public AugAssignment(SingleTarget lhs, AugAssign augassign, AnnotatedRhs rhs)
Constructs an immutableAugAssignment.
-
-
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(AugAssignment other)
- Specified by:
compareToin interfacejava.lang.Comparable<AugAssignment>
-
withLhs
public AugAssignment withLhs(SingleTarget lhs)
Returns a copy of thisAugAssignmentwithlhsreplaced.
-
withAugassign
public AugAssignment withAugassign(AugAssign augassign)
Returns a copy of thisAugAssignmentwithaugassignreplaced.
-
withRhs
public AugAssignment withRhs(AnnotatedRhs rhs)
Returns a copy of thisAugAssignmentwithrhsreplaced.
-
builder
public static AugAssignment.Builder builder()
Creates a new fluent builder forAugAssignment.
-
-