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 Name
FIELD_NAME_LHS
static Name
FIELD_NAME_RHS
static Name
FIELD_NAME_TYPE
SingleTarget
lhs
Opt<AnnotatedRhs>
rhs
Expression
type
static Name
TYPE_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 boolean
equals(java.lang.Object other)
int
hashCode()
TypedAssignment
withLhs(SingleTarget lhs)
TypedAssignment
withRhs(Opt<AnnotatedRhs> rhs)
TypedAssignment
withType(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withLhs
public TypedAssignment withLhs(SingleTarget lhs)
-
withType
public TypedAssignment withType(Expression type)
-
withRhs
public TypedAssignment withRhs(Opt<AnnotatedRhs> rhs)
-
-