sealed trait Type extends AnyRef

A GraphQL type definition.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Type
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def <:<(other: Type): Boolean

    true if this type is a subtype of other.

  4. def =:=(other: Type): Boolean

    Is this type equivalent to other.

    Is this type equivalent to other.

    Note that plain == will distinguish types from type aliases, which is typically not desirable, so =:= is usually the most appropriate comparison operator.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def asLeaf: Type

    If the underlying type of this type is a scalar or an enum then yield it otherwise yield NoType.

  8. def asNamed: Option[NamedType]
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. def dealias: Type

    Strip off aliases

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def exists: Boolean

    true if a non-TypeRef or a TypeRef to a defined type

  14. def field(fieldName: String): Type

    Yield the type of the field of this type named fieldName or NoType if there is no such field.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hasField(fieldName: String): Boolean

    true if this type has a field named fieldName, false otherwise.

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isInterface: Boolean
  20. def isLeaf: Boolean

    Is this type a leaf type?

    Is this type a leaf type?

    true if after stripping of aliases the underlying type a scalar or an enum, false otherwise.

  21. def isList: Boolean

    Is this type a list.

  22. def isNamed: Boolean
  23. def isNullable: Boolean

    Is this type nullable?

  24. def item: Type

    The element type of this type.

    The element type of this type.

    If this type is is a list, yield the non-list underlying type. Otherwise yield NoType.

  25. def list: Type

    This type if it is a (nullable) list, ListType(this) otherwise.

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def nominal_=:=(other: Type): Boolean
  28. def nonNull: Type

    A non-nullable version of this type.

    A non-nullable version of this type.

    If this type is nullable, yield the non-nullable underlying type. Otherwise yield this type.

  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. def nullable: Type

    This type if it is nullable, Nullable(this) otherwise.

  32. def orElse(other: => Type): Type

    This type if it isn't NoType, other otherwise.

  33. def path(fns: List[String]): Type

    Yield the type of the field at the end of the path fns starting from this type, or NoType if there is no such field.

  34. def pathIsList(fns: List[String]): Boolean

    Does the path fns from this type specify multiple values.

    Does the path fns from this type specify multiple values.

    true if navigating through the path fns from this type might specify 0 or more values. This will be the case if the path passes through at least one field of a List type.

  35. def pathIsNullable(fns: List[String]): Boolean

    Does the path fns from this type specify a nullable type.

    Does the path fns from this type specify a nullable type.

    true if navigating through the path fns from this type might specify an optional value. This will be the case if the path passes through at least one field of a nullable type.

  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toOption: Option[Type]

    Some of this type if it isn't NoType, None otherwise.

  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. def underlyingField(fieldName: String): Type

    Yield the type of the field named fieldName of the object type underlying this type.

    Yield the type of the field named fieldName of the object type underlying this type.

    Strip off all aliases, nullability and enclosing list types until an underlying object type is reached which has a field named fieldName, in which case yield the type of that field; if there is no such field, yields NoType.

  40. def underlyingObject: Type

    Yield the object type underlying this type.

    Yield the object type underlying this type.

    Strip off all aliases, nullability and enclosing list types until an underlying object type is reached, in which case yield it, or a non-object type which isn't further reducible is reached, in which case yield NoType.

  41. def variantField(fieldName: String): Boolean

    true if this type has a field named fieldName which is undefined in some interface it implements

  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. def withField[T](fieldName: String)(body: (Type) => Result[T]): Result[T]
  46. def withUnderlyingField[T](fieldName: String)(body: (Type) => Result[T]): Result[T]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped