Package hydra.scala.syntax
Class AnnotateType
- java.lang.Object
-
- hydra.scala.syntax.AnnotateType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AnnotateType>
public class AnnotateType extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AnnotateType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotateType.BuilderA fluent builder forAnnotateType.
-
Field Summary
Fields Modifier and Type Field Description java.util.List<AnnotMod>annotsstatic NameANNOTSName of thehydra.scala.syntax.AnnotateType.annotsfield.Typetpestatic NameTPEName of thehydra.scala.syntax.AnnotateType.tpefield.static NameTYPE_Name of thehydra.scala.syntax.AnnotateTypetype.
-
Constructor Summary
Constructors Constructor Description AnnotateType(Type tpe, java.util.List<AnnotMod> annots)Constructs an immutableAnnotateType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotateType.Builderbuilder()Creates a new fluent builder forAnnotateType.intcompareTo(AnnotateType other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()AnnotateTypewithAnnots(java.util.List<AnnotMod> annots)Returns a copy of thisAnnotateTypewithannotsreplaced.AnnotateTypewithTpe(Type tpe)Returns a copy of thisAnnotateTypewithtpereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.scala.syntax.AnnotateTypetype.
-
TPE
public static final Name TPE
Name of thehydra.scala.syntax.AnnotateType.tpefield.
-
ANNOTS
public static final Name ANNOTS
Name of thehydra.scala.syntax.AnnotateType.annotsfield.
-
tpe
public final Type tpe
-
annots
public final java.util.List<AnnotMod> annots
-
-
Constructor Detail
-
AnnotateType
public AnnotateType(Type tpe, java.util.List<AnnotMod> annots)
Constructs an immutableAnnotateType.
-
-
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(AnnotateType other)
- Specified by:
compareToin interfacejava.lang.Comparable<AnnotateType>
-
withTpe
public AnnotateType withTpe(Type tpe)
Returns a copy of thisAnnotateTypewithtpereplaced.
-
withAnnots
public AnnotateType withAnnots(java.util.List<AnnotMod> annots)
Returns a copy of thisAnnotateTypewithannotsreplaced.
-
builder
public static AnnotateType.Builder builder()
Creates a new fluent builder forAnnotateType.
-
-