Package hydra.ext.python.syntax
Class TypedAssignment
- java.lang.Object
-
- hydra.ext.python.syntax.TypedAssignment
-
- All Implemented Interfaces:
java.io.Serializable
public class TypedAssignment extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameFIELD_NAME_LHSstatic NameFIELD_NAME_RHSstatic NameFIELD_NAME_TYPESingleTargetlhsOpt<AnnotatedRhs>rhsExpressiontypestatic NameTYPE_NAME
-
Constructor Summary
Constructors Constructor Description TypedAssignment(SingleTarget lhs, Expression type, Opt<AnnotatedRhs> rhs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()TypedAssignmentwithLhs(SingleTarget lhs)TypedAssignmentwithRhs(Opt<AnnotatedRhs> rhs)TypedAssignmentwithType(Expression type)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_LHS
public static final Name FIELD_NAME_LHS
-
FIELD_NAME_TYPE
public static final Name FIELD_NAME_TYPE
-
FIELD_NAME_RHS
public static final Name FIELD_NAME_RHS
-
lhs
public final SingleTarget lhs
-
type
public final Expression type
-
rhs
public final Opt<AnnotatedRhs> rhs
-
-
Constructor Detail
-
TypedAssignment
public TypedAssignment(SingleTarget lhs, Expression type, Opt<AnnotatedRhs> rhs)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
withLhs
public TypedAssignment withLhs(SingleTarget lhs)
-
withType
public TypedAssignment withType(Expression type)
-
withRhs
public TypedAssignment withRhs(Opt<AnnotatedRhs> rhs)
-
-