trait GraphQLMacro extends Macro
- Attributes
- protected
- Alphabetic
- By Inheritance
- GraphQLMacro
- Macro
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class CaseClass(name: String, params: List[ClassParam], nested: List[Class] = List.empty) extends Class with Product with Serializable
The definition of a case class to contain an object from the query response.
The definition of a case class to contain an object from the query response.
Consists of the class name and its ClassParam parameters.
- Attributes
- protected[this]
- sealed trait Class extends AnyRef
- Attributes
- protected[this]
- case class ClassParam(name: String, tpe: scala.reflect.macros.Universe.Tree, overrides: Boolean = false) extends Product with Serializable
Represents a parameter that will be used for a generated case class or variable.
Represents a parameter that will be used for a generated case class or variable.
Consists of the name of the parameter and its Grackle type.
- Attributes
- protected[this]
- case class Enum(name: String, values: List[String]) extends Product with Serializable
- Attributes
- protected[this]
- case class Sum(params: List[ClassParam], nested: List[Class] = List.empty, instances: List[CaseClass], discriminator: String) extends Product with Serializable
- Attributes
- protected[this]
- case class SumClass(name: String, sum: Sum) extends Class with Product with Serializable
- Attributes
- protected[this]
- case class EnumValue(asString: String, className: String) extends Product with Serializable
- Attributes
- protected[this]
- Definition Classes
- Macro
- sealed trait TypeType extends AnyRef
- Attributes
- protected[this]
- Definition Classes
- Macro
Abstract Value Members
- abstract val c: Context
- Definition Classes
- GraphQLMacro → Macro
- abstract def expand(annottees: scala.reflect.macros.Universe.Tree*): IO[scala.reflect.macros.Universe.Tree]
- Attributes
- protected[this]
- Definition Classes
- Macro
Concrete 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
- def abort(msg: String): IO[Nothing]
- Attributes
- protected[this]
- Definition Classes
- Macro
- def addCaseClassDef(name: String, pars: List[scala.reflect.macros.Universe.ValDef], extending: Option[String] = None): (List[scala.reflect.macros.Universe.Tree]) => (List[scala.reflect.macros.Universe.Tree], Boolean)
Compute a case class definition.
Compute a case class definition.
- Attributes
- protected[this]
- Definition Classes
- Macro
- def addEnum(name: String, values: List[String], eq: Boolean, show: Boolean, reuse: Boolean, encoder: Boolean = false, decoder: Boolean = false): (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree]
- Attributes
- protected[this]
- Definition Classes
- Macro
- def addModuleDefs(name: String, eq: Boolean, show: Boolean, reuse: Boolean, encoder: Boolean = false, decoder: Boolean = false, typeType: TypeType = TypeType.CaseClass, modStatements: (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree] = identity, nestPath: Option[scala.reflect.macros.Universe.Tree] = None): (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree]
Compute a companion object with typeclasses.
Compute a companion object with typeclasses.
- Attributes
- protected[this]
- Definition Classes
- Macro
- def addModuleStatements(moduleName: String, statements: List[scala.reflect.macros.Universe.Tree]): (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree]
- Attributes
- protected[this]
- Definition Classes
- Macro
- def addSumTrait(name: String, pars: List[scala.reflect.macros.Universe.ValDef], extending: Option[String] = None): (List[scala.reflect.macros.Universe.Tree]) => (List[scala.reflect.macros.Universe.Tree], Boolean)
- Attributes
- protected[this]
- Definition Classes
- Macro
- def addValDef(valName: String, valType: scala.reflect.macros.Universe.Tree, value: scala.reflect.macros.Universe.Tree): (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree]
- Attributes
- protected[this]
- Definition Classes
- Macro
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildOptionalParams[T](implicit tag: ClassTag[T]): T
- Attributes
- protected[this]
- Definition Classes
- Macro
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compileType(schema: Schema, tpe: Type): Result[Type]
- Attributes
- protected[this]
- def compileVarDefs(schema: Schema, untypedVarDefs: UntypedVarDefs): Result[VarDefs]
- Attributes
- protected[this]
- def debugTree(tree: scala.reflect.macros.Universe.Tree): IO[Unit]
Log an actual Tree AST (not the Scala code equivalent).
Log an actual Tree AST (not the Scala code equivalent).
- Attributes
- protected[this]
- Definition Classes
- Macro
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): java.lang.Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTermDefined(termName: String): (List[scala.reflect.macros.Universe.Tree]) => Boolean
- Attributes
- protected[this]
- Definition Classes
- Macro
- def isTypeDefined(typeName: String): (List[scala.reflect.macros.Universe.Tree]) => Boolean
- Attributes
- protected[this]
- Definition Classes
- Macro
- def log(msg: Any): IO[Unit]
Log debug info.
Log debug info.
- Attributes
- protected[this]
- Definition Classes
- Macro
- final def macroResolve(annottees: scala.reflect.macros.Universe.Tree*): scala.reflect.macros.Universe.Tree
- Definition Classes
- Macro
- Annotations
- @inline()
- def modifyModuleStatements(moduleName: String, mod: (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree]): (List[scala.reflect.macros.Universe.Tree]) => List[scala.reflect.macros.Universe.Tree]
- Attributes
- protected[this]
- Definition Classes
- Macro
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parseType(tpe: String): scala.reflect.macros.Universe.Tree
Parse a type name (c.parse only parses terms).
Parse a type name (c.parse only parses terms).
- Attributes
- protected[this]
- Definition Classes
- Macro
- def retrieveSchema(resourceDirs: List[File], schemaName: String): IO[Schema]
Parse the schema file.
Parse the schema file.
- Attributes
- protected[this]
- def snakeToCamel(s: String): String
- Attributes
- protected[this]
- Definition Classes
- Macro
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unqualifiedType(tpe: scala.reflect.macros.Universe.Tree): Option[String]
Extract the unqualified type name from a type.
Extract the unqualified type name from a type.
- Attributes
- protected[this]
- Definition Classes
- Macro
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object ClassParam extends Serializable
- Attributes
- protected[this]
- object EnumValue extends Serializable
- Attributes
- protected[this]
- Definition Classes
- Macro
- object TypeNamesToTermNames extends scala.reflect.macros.Universe.Transformer
- Attributes
- protected[this]
- Definition Classes
- Macro
- object TypeType
- Attributes
- protected[this]
- Definition Classes
- Macro
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated