Package hydra.scala.syntax
Class PolyFunctionType
- java.lang.Object
-
- hydra.scala.syntax.PolyFunctionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PolyFunctionType>
public class PolyFunctionType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PolyFunctionType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolyFunctionType.BuilderA fluent builder forPolyFunctionType.
-
Field Summary
Fields Modifier and Type Field Description java.util.List<ParamType>tparamsstatic NameTPARAMSName of thehydra.scala.syntax.PolyFunctionType.tparamsfield.Typetpestatic NameTPEName of thehydra.scala.syntax.PolyFunctionType.tpefield.static NameTYPE_Name of thehydra.scala.syntax.PolyFunctionTypetype.
-
Constructor Summary
Constructors Constructor Description PolyFunctionType(java.util.List<ParamType> tparams, Type tpe)Constructs an immutablePolyFunctionType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolyFunctionType.Builderbuilder()Creates a new fluent builder forPolyFunctionType.intcompareTo(PolyFunctionType other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()PolyFunctionTypewithTparams(java.util.List<ParamType> tparams)Returns a copy of thisPolyFunctionTypewithtparamsreplaced.PolyFunctionTypewithTpe(Type tpe)Returns a copy of thisPolyFunctionTypewithtpereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.scala.syntax.PolyFunctionTypetype.
-
TPARAMS
public static final Name TPARAMS
Name of thehydra.scala.syntax.PolyFunctionType.tparamsfield.
-
TPE
public static final Name TPE
Name of thehydra.scala.syntax.PolyFunctionType.tpefield.
-
tparams
public final java.util.List<ParamType> tparams
-
tpe
public final Type tpe
-
-
Constructor Detail
-
PolyFunctionType
public PolyFunctionType(java.util.List<ParamType> tparams, Type tpe)
Constructs an immutablePolyFunctionType.
-
-
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(PolyFunctionType other)
- Specified by:
compareToin interfacejava.lang.Comparable<PolyFunctionType>
-
withTparams
public PolyFunctionType withTparams(java.util.List<ParamType> tparams)
Returns a copy of thisPolyFunctionTypewithtparamsreplaced.
-
withTpe
public PolyFunctionType withTpe(Type tpe)
Returns a copy of thisPolyFunctionTypewithtpereplaced.
-
builder
public static PolyFunctionType.Builder builder()
Creates a new fluent builder forPolyFunctionType.
-
-