Package hydra.scala.syntax
Class InterpolatePat
- java.lang.Object
-
- hydra.scala.syntax.InterpolatePat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InterpolatePat>
public class InterpolatePat extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<InterpolatePat>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterpolatePat.BuilderA fluent builder forInterpolatePat.
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Lit>partsstatic NamePARTSName of thehydra.scala.syntax.InterpolatePat.partsfield.NameDataprefixstatic NamePREFIXName of thehydra.scala.syntax.InterpolatePat.prefixfield.static NameTYPE_Name of thehydra.scala.syntax.InterpolatePattype.
-
Constructor Summary
Constructors Constructor Description InterpolatePat(NameData prefix, java.util.List<Lit> parts)Constructs an immutableInterpolatePat.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InterpolatePat.Builderbuilder()Creates a new fluent builder forInterpolatePat.intcompareTo(InterpolatePat other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()InterpolatePatwithParts(java.util.List<Lit> parts)Returns a copy of thisInterpolatePatwithpartsreplaced.InterpolatePatwithPrefix(NameData prefix)Returns a copy of thisInterpolatePatwithprefixreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.scala.syntax.InterpolatePattype.
-
PREFIX
public static final Name PREFIX
Name of thehydra.scala.syntax.InterpolatePat.prefixfield.
-
PARTS
public static final Name PARTS
Name of thehydra.scala.syntax.InterpolatePat.partsfield.
-
prefix
public final NameData prefix
-
parts
public final java.util.List<Lit> parts
-
-
Constructor Detail
-
InterpolatePat
public InterpolatePat(NameData prefix, java.util.List<Lit> parts)
Constructs an immutableInterpolatePat.
-
-
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(InterpolatePat other)
- Specified by:
compareToin interfacejava.lang.Comparable<InterpolatePat>
-
withPrefix
public InterpolatePat withPrefix(NameData prefix)
Returns a copy of thisInterpolatePatwithprefixreplaced.
-
withParts
public InterpolatePat withParts(java.util.List<Lit> parts)
Returns a copy of thisInterpolatePatwithpartsreplaced.
-
builder
public static InterpolatePat.Builder builder()
Creates a new fluent builder forInterpolatePat.
-
-