Packages

object Generator

Source
Generator.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Generator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class CaseClass(name: String, fields: List[CaseClassField]) extends Product with Serializable
  2. case class CaseClassField(name: String, tpe: InverseModifierStack[String], default: Option[Value[AnyValue, Caret]]) extends Product with Serializable
  3. sealed trait ContextInfo extends AnyRef
  4. type CurrentPath[F[_]] = Local[F, Chain[String]]
  5. final case class Env(schema: Map[String, TypeDefinition], fragmentInfos: Map[String, FragmentInfo]) extends Product with Serializable
  6. type Err[F[_]] = Handle[F, NonEmptyChain[String]]
  7. final case class FieldPart(name: String, scalaType: String, localType: String, subPart: Option[Part], codec: Doc, spreadCondition: Option[String]) extends Product with Serializable
  8. final case class FragmentInfo(name: String, on: String) extends Product with Serializable
  9. final case class Input(query: Path, output: Path) extends Product with Serializable
  10. final case class Output(path: Path, doc: Doc) extends Product with Serializable
  11. final case class Part(name: String, typePart: NonEmptyList[Doc], typeMethods: List[Doc], subParts: List[Part], codec: NonEmptyList[Doc], contextInfo: Option[ContextInfo], companionExtra: List[Doc]) extends Product with Serializable
  12. final case class PositionalInfo(caret: Caret, input: Input, sourceQuery: String) extends Product with Serializable
  13. final case class QVar(varDecl: Doc, name: String, scalaType: String, isOption: Boolean) extends Product with Serializable
  14. type UsedInput = Either[EnumTypeDefinition, InputObjectTypeDefinition]
  15. type UsedInputTypes[F[_]] = Tell[F, Set[UsedInput]]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def caseClass(name: String, xs: List[Doc], methods: List[Doc]): Doc
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def gatherFragInfo[F[_]](i: Input)(implicit arg0: Async[F], arg1: Err[F], arg2: Files[F]): F[List[FragmentInfo]]
  11. def gatherFragmentInfos(xs: NonEmptyList[ExecutableDefinition[Caret]]): List[FragmentInfo]
  12. def generateEnumType(td: EnumTypeDefinition): Doc
  13. def generateExecutableDefs[F[_]](env: Env, query: NonEmptyList[ExecutableDefinition[Caret]])(implicit arg0: Parallel[F], P: CurrentPath[F], U: UsedInputTypes[F], F: MonadError[F, NonEmptyChain[String]]): F[Doc]
  14. def generateField[F[_]](companionName: String, env: Env, f: Field[Caret], fd: FieldDefinition)(implicit arg0: Parallel[F], P: CurrentPath[F], U: UsedInputTypes[F], F: MonadError[F, NonEmptyChain[String]]): F[FieldPart]
  15. def generateFor[F[_]](env: Env, query: NonEmptyList[ExecutableDefinition[Caret]])(implicit E: Err[F], F: Applicative[F]): F[(Set[UsedInput], Doc)]
  16. def generateForInput[F[_]](env: Env, i: Input)(implicit arg0: Async[F], arg1: Err[F], arg2: Files[F]): F[(String, Set[UsedInput], Output, NonEmptyList[ExecutableDefinition[Caret]])]
  17. def generateInputType(td: InputObjectTypeDefinition): Doc
  18. def generateInputs(env: Env, uis: List[UsedInput]): Doc
  19. def generateOneInput(ui: UsedInput): Doc
  20. def generateSelection[F[_]](td: TypeDefinition, companionName: String, env: Env, fieldMap: Map[String, FieldDefinition], sel: parser.QueryAst.Selection[Caret])(implicit arg0: Parallel[F], P: CurrentPath[F], U: UsedInputTypes[F], F: MonadError[F, NonEmptyChain[String]]): F[FieldPart]
  21. def generateTypeDef[F[_]](env: Env, name: String, typename: String, sels: NonEmptyList[parser.QueryAst.Selection[Caret]], contextInfo: Option[ContextInfo])(implicit arg0: Parallel[F], P: CurrentPath[F], U: UsedInputTypes[F], F: MonadError[F, NonEmptyChain[String]]): F[Part]
  22. def generateValue[C](v: Value[AnyValue, C], anyValue: Boolean): Doc
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def getSchemaFrom(s: String): Either[String, Map[String, TypeDefinition]]
  25. def hardIntercalate(left: Doc, right: Doc, xs: List[Doc], sep: Doc = Doc.empty): Doc
  26. def hardIntercalateBracket(left: Char, sep: Doc = Doc.empty)(xs: List[Doc])(right: Char): Doc
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def imp(t: String): Doc
  29. def in[F[_], A](field: String)(fa: F[A])(implicit P: CurrentPath[F]): F[A]
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. def mainGenerate[F[_]](schemaPath: Path, sharedPath: Path, validate: Boolean)(data: List[Input])(implicit arg0: Async[F]): F[List[String]]
  32. def modifyHead(f: (Char) => Char): (String) => String
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def obj[G[_]](name: String, body: G[Doc])(implicit arg0: Foldable[G]): Doc
  37. def optUnless(cond: Boolean)(tpe: String): String
  38. def params(xs: List[Doc]): Doc
  39. def partitionEmittableInputDef[F[_]](env: Env, typename: String)(implicit F: Monad[F], U: UsedInputTypes[F]): F[Unit]
  40. def partitionEmittableInputType[F[_]](env: Env, tpe: Type)(implicit F: Monad[F], U: UsedInputTypes[F]): F[Unit]
  41. def quoted(str: String): Doc
  42. def quoted(doc: Doc): Doc
  43. def raise[F[_], A](msg: String)(implicit F: MonadError[F, NonEmptyChain[String]], P: CurrentPath[F]): F[A]
  44. def readAndGenerate[F[_]](schemaPath: Path, sharedPath: Path, validate: Boolean)(data: List[Input])(implicit arg0: Files[F], F: Async[F], E: Err[F]): F[Unit]
  45. def readEnv[F[_]](schema: Path)(data: List[Input])(implicit arg0: Async[F], arg1: Err[F], arg2: Files[F]): F[Env]
  46. def readInputData[F[_]](i: Input)(implicit arg0: Files[F], E: Err[F], F: Async[F]): F[(String, NonEmptyList[ExecutableDefinition[Caret]])]
  47. def readSchema[F[_]](schemaPath: Path)(implicit arg0: Files[F], E: Err[F], F: Async[F]): F[Map[String, TypeDefinition]]
  48. def scalaField(name: String, tpe: String): Doc
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. val toCaml: (String) => String
  51. val toPascal: (String) => String
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. def verticalApply(name: String, params: List[Doc]): Doc
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  57. def writeStream[F[_]](path: Path, doc: Doc)(implicit arg0: Async[F], arg1: Files[F]): Stream[[x]F[x], Nothing]
  58. object ContextInfo

Inherited from AnyRef

Inherited from Any

Ungrouped