Package hydra.typeScript.syntax
Class TypeExpression.Intersection
- java.lang.Object
-
- hydra.typeScript.syntax.TypeExpression
-
- hydra.typeScript.syntax.TypeExpression.Intersection
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeExpression>
- Enclosing class:
- TypeExpression
public static final class TypeExpression.Intersection extends TypeExpression implements java.io.Serializable
An intersection type (A & B)- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.typeScript.syntax.TypeExpression
TypeExpression.Any, TypeExpression.Array, TypeExpression.Function, TypeExpression.Identifier, TypeExpression.Intersection, TypeExpression.Literal, TypeExpression.Never, TypeExpression.Object_, TypeExpression.Optional, TypeExpression.Parameterized, TypeExpression.PartialVisitor<R>, TypeExpression.Readonly, TypeExpression.Tuple, TypeExpression.Union, TypeExpression.Unknown, TypeExpression.Visitor<R>, TypeExpression.Void_
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<TypeExpression>value-
Fields inherited from class hydra.typeScript.syntax.TypeExpression
ANY, ARRAY, FUNCTION, IDENTIFIER, INTERSECTION, LITERAL, NEVER, OBJECT, OPTIONAL, PARAMETERIZED, READONLY, TUPLE, TYPE_, UNION, UNKNOWN, VOID
-
-
Constructor Summary
Constructors Constructor Description Intersection(java.util.List<TypeExpression> value)Constructs an immutableTypeExpression.Intersection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(TypeExpression.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(TypeExpression other)booleanequals(java.lang.Object other)inthashCode()inthydraOrdinal()java.lang.StringtoString()
-
-
-
Field Detail
-
value
public final java.util.List<TypeExpression> value
-
-
Constructor Detail
-
Intersection
public Intersection(java.util.List<TypeExpression> value)
Constructs an immutableTypeExpression.Intersection.
-
-
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(TypeExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypeExpression>
-
hydraOrdinal
public int hydraOrdinal()
- Specified by:
hydraOrdinalin classTypeExpression
-
accept
public <R> R accept(TypeExpression.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classTypeExpression
-
-