case class UnionType[Ctx](name: String, description: Option[String] = None, typesFn: () ⇒ List[ObjectType[Ctx, _]], astDirectives: Vector[ast.Directive] = Vector.empty, astNodes: Vector[AstNode] = Vector.empty) extends OutputType[Any] with CompositeType[Any] with AbstractType with NullableType with UnmodifiedType with HasAstInfo with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- UnionType
- Serializable
- Serializable
- Product
- Equals
- HasAstInfo
- UnmodifiedType
- NullableType
- AbstractType
- CompositeType
- Named
- HasDescription
- OutputType
- Type
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new UnionType(name: String, description: Option[String] = None, typesFn: () ⇒ List[ObjectType[Ctx, _]], astDirectives: Vector[ast.Directive] = Vector.empty, astNodes: Vector[AstNode] = Vector.empty)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
astDirectives: Vector[ast.Directive]
- Definition Classes
- UnionType → HasAstInfo
-
val
astNodes: Vector[AstNode]
- Definition Classes
- UnionType → HasAstInfo
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
description: Option[String]
- Definition Classes
- UnionType → HasDescription
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapValue[T](func: (T) ⇒ Any): OutputType[T]
Creates a type-safe version of union type which might be useful in cases where the value is wrapped in a type like
Either. -
val
name: String
- Definition Classes
- UnionType → AbstractType → Named
-
def
namedType: Type with Named
- Definition Classes
- Type
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rename(newName: String): UnionType.this.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toAst: TypeDefinition
-
def
typeOf[Ctx](value: Any, schema: Schema[Ctx, _]): Option[ObjectType[Ctx, _]]
- Definition Classes
- AbstractType
- lazy val types: List[ObjectType[Ctx, _]]
- val typesFn: () ⇒ List[ObjectType[Ctx, _]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()