case class ApolloSourceGenerator(fileName: String, additionalImports: List[Import], additionalInits: List[Init], jsonCodeGen: JsonCodeGen) extends Generator[List[Stat]] with Product with Serializable
Generate code using Scalameta.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ApolloSourceGenerator
- Serializable
- Serializable
- Product
- Equals
- Generator
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ApolloSourceGenerator(fileName: String, additionalImports: List[Import], additionalInits: List[Init], jsonCodeGen: JsonCodeGen)
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
- val additionalImports: List[Import]
- val additionalInits: List[Init]
-
def
andThen[A](g: (Result[List[Stat]]) ⇒ A): (Api) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(document: Api): Result[List[Stat]]
- Definition Classes
- ApolloSourceGenerator → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ Api): (A) ⇒ Result[List[Stat]]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val fileName: String
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generateInterfaces(document: Api): Result[List[Stat]]
Generates only the interfaces (fragments) that appear in the given document.
Generates only the interfaces (fragments) that appear in the given document.
This method works great with DocumentLoader.merge, merging all fragments together and generating a single interface definition object.
- document
schema + query
- returns
interfaces
-
def
generateTypes(document: Api): Result[List[Stat]]
Generates only the types that appear in the given document.
Generates only the types that appear in the given document.
This method works great with DocumentLoader.merge, merging all fragments together and generating a single type definition object.
- document
schema + query
- returns
types
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jsonCodeGen: JsonCodeGen
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
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()