Package hydra.scala.syntax
Class ValDecl
- java.lang.Object
-
- hydra.scala.syntax.ValDecl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ValDecl>
public class ValDecl extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ValDecl>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValDecl.BuilderA fluent builder forValDecl.
-
Field Summary
Fields Modifier and Type Field Description Typedecltpestatic NameDECLTPEName of thehydra.scala.syntax.ValDecl.decltpefield.java.util.List<Mod>modsstatic NameMODSName of thehydra.scala.syntax.ValDecl.modsfield.java.util.List<Pat>patsstatic NamePATSName of thehydra.scala.syntax.ValDecl.patsfield.static NameTYPE_Name of thehydra.scala.syntax.ValDecltype.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValDecl.Builderbuilder()Creates a new fluent builder forValDecl.intcompareTo(ValDecl other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()ValDeclwithDecltpe(Type decltpe)Returns a copy of thisValDeclwithdecltpereplaced.ValDeclwithMods(java.util.List<Mod> mods)Returns a copy of thisValDeclwithmodsreplaced.ValDeclwithPats(java.util.List<Pat> pats)Returns a copy of thisValDeclwithpatsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.scala.syntax.ValDecltype.
-
MODS
public static final Name MODS
Name of thehydra.scala.syntax.ValDecl.modsfield.
-
PATS
public static final Name PATS
Name of thehydra.scala.syntax.ValDecl.patsfield.
-
DECLTPE
public static final Name DECLTPE
Name of thehydra.scala.syntax.ValDecl.decltpefield.
-
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(ValDecl other)
- Specified by:
compareToin interfacejava.lang.Comparable<ValDecl>
-
withMods
public ValDecl withMods(java.util.List<Mod> mods)
Returns a copy of thisValDeclwithmodsreplaced.
-
withPats
public ValDecl withPats(java.util.List<Pat> pats)
Returns a copy of thisValDeclwithpatsreplaced.
-
withDecltpe
public ValDecl withDecltpe(Type decltpe)
Returns a copy of thisValDeclwithdecltpereplaced.
-
builder
public static ValDecl.Builder builder()
Creates a new fluent builder forValDecl.
-
-