Package hydra.scala.syntax
Class VarDefn
- java.lang.Object
-
- hydra.scala.syntax.VarDefn
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VarDefn>
public class VarDefn extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<VarDefn>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVarDefn.BuilderA fluent builder forVarDefn.
-
Field Summary
Fields Modifier and Type Field Description Typedecltpestatic NameDECLTPEName of thehydra.scala.syntax.VarDefn.decltpefield.java.util.List<Mod>modsstatic NameMODSName of thehydra.scala.syntax.VarDefn.modsfield.java.util.List<Pat>patsstatic NamePATSName of thehydra.scala.syntax.VarDefn.patsfield.Optional<Data>rhsstatic NameRHSName of thehydra.scala.syntax.VarDefn.rhsfield.static NameTYPE_Name of thehydra.scala.syntax.VarDefntype.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VarDefn.Builderbuilder()Creates a new fluent builder forVarDefn.intcompareTo(VarDefn other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()VarDefnwithDecltpe(Type decltpe)Returns a copy of thisVarDefnwithdecltpereplaced.VarDefnwithMods(java.util.List<Mod> mods)Returns a copy of thisVarDefnwithmodsreplaced.VarDefnwithPats(java.util.List<Pat> pats)Returns a copy of thisVarDefnwithpatsreplaced.VarDefnwithRhs(Optional<Data> rhs)Returns a copy of thisVarDefnwithrhsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.scala.syntax.VarDefntype.
-
MODS
public static final Name MODS
Name of thehydra.scala.syntax.VarDefn.modsfield.
-
PATS
public static final Name PATS
Name of thehydra.scala.syntax.VarDefn.patsfield.
-
DECLTPE
public static final Name DECLTPE
Name of thehydra.scala.syntax.VarDefn.decltpefield.
-
RHS
public static final Name RHS
Name of thehydra.scala.syntax.VarDefn.rhsfield.
-
mods
public final java.util.List<Mod> mods
-
pats
public final java.util.List<Pat> pats
-
decltpe
public final Type decltpe
-
-
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(VarDefn other)
- Specified by:
compareToin interfacejava.lang.Comparable<VarDefn>
-
withMods
public VarDefn withMods(java.util.List<Mod> mods)
Returns a copy of thisVarDefnwithmodsreplaced.
-
withPats
public VarDefn withPats(java.util.List<Pat> pats)
Returns a copy of thisVarDefnwithpatsreplaced.
-
withDecltpe
public VarDefn withDecltpe(Type decltpe)
Returns a copy of thisVarDefnwithdecltpereplaced.
-
withRhs
public VarDefn withRhs(Optional<Data> rhs)
Returns a copy of thisVarDefnwithrhsreplaced.
-
builder
public static VarDefn.Builder builder()
Creates a new fluent builder forVarDefn.
-
-