com.twitter.scrooge.backend

Generator

trait Generator extends ThriftGenerator

Linear Supertypes
ThriftGenerator, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Generator
  2. ThriftGenerator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(_doc: Document, serviceOptions: Set[ServiceOption], outputPath: File, dryRun: Boolean = false): Iterable[File]

    Definition Classes
    ThriftGenerator
  2. abstract val defaultNamespace: String

  3. abstract val experimentFlags: Seq[String]

  4. abstract def genBaseFinagleService: CodeFragment

  5. abstract def genEnum(enum: EnumRHS, fieldType: Option[FieldType] = None): CodeFragment

  6. abstract def genFieldParams(fields: Seq[Field], asVal: Boolean = false): CodeFragment

  7. abstract def genFieldType(f: Field, mutable: Boolean = false): CodeFragment

  8. abstract def genList(list: ListRHS, mutable: Boolean = false): CodeFragment

  9. abstract def genMap(map: MapRHS, mutable: Boolean = false): CodeFragment

  10. abstract def genPrimitiveType(t: FunctionType, mutable: Boolean = false): CodeFragment

  11. abstract def genSet(set: SetRHS, mutable: Boolean = false, fieldType: Option[FieldType] = None): CodeFragment

  12. abstract def genStruct(struct: StructRHS): CodeFragment

  13. abstract def genToImmutable(f: Field): CodeFragment

    Generates a suffix to append to a field expression that will convert the value to an immutable equivalent.

  14. abstract def genToImmutable(t: FieldType): CodeFragment

    Generates a suffix to append to a field expression that will convert the value to an immutable equivalent.

  15. abstract def genType(t: FunctionType, mutable: Boolean = false): CodeFragment

  16. abstract def getParentFinagleClient(parent: ServiceParent): CodeFragment

  17. abstract def getParentFinagleService(parent: ServiceParent): CodeFragment

  18. abstract val includeMap: Map[String, ResolvedDocument]

    Map from included file names to the namespaces defined in those files.

  19. abstract def normalizeCase[N <: Node](node: N): N

  20. abstract def quoteKeyword(str: String): String

  21. abstract def toMutable(f: Field): (String, String)

    Generates a prefix and suffix to wrap around a field expression that will convert the value to a mutable equivalent.

  22. abstract def toMutable(t: FieldType): (String, String)

    Generates a prefix and suffix to wrap around a field expression that will convert the value to a mutable equivalent.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finagleClientFile(packageDir: File, service: Service, options: Set[ServiceOption]): Option[File]

  11. def finagleServiceFile(packageDir: File, service: Service, options: Set[ServiceOption]): Option[File]

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def genConstType(t: FunctionType): CodeFragment

  14. def genConstant(constant: RHS, mutable: Boolean = false, fieldType: Option[FieldType] = None): CodeFragment

  15. def genDefaultFieldValue(f: Field): Option[CodeFragment]

  16. def genDefaultReadValue(f: Field): CodeFragment

  17. def genDefaultValue(fieldType: FieldType, mutable: Boolean = false): CodeFragment

    The default value for the specified type and mutability.

  18. def genID(data: Identifier): CodeFragment

  19. def genProtocolReadMethod(t: FunctionType): CodeFragment

  20. def genProtocolWriteMethod(t: FunctionType): CodeFragment

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getIncludeNamespace(includeFileName: String): Identifier

    Attributes
    protected
  23. def getNamespace(doc: Document): Identifier

  24. def getServiceParentID(parent: ServiceParent): Identifier

    get the ID of a service parent.

    get the ID of a service parent. Java and Scala implementations are different.

  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isNullableType(t: FieldType, isOptional: Boolean = false): Boolean

  28. def isPrimitive(t: FunctionType): Boolean

  29. def namespacedFolder(destFolder: File, namespace: String, dryRun: Boolean): File

    ****************** helper functions ***********************

    ****************** helper functions ***********************

    Attributes
    protected
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def qualifyNamedType(t: NamedType): Identifier

    When a named type is imported via include statement, we need to qualify it using its full namespace

  34. def quote(str: String): String

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def writeFile(file: File, fileHeader: String, fileContent: String): Unit

    Attributes
    protected

Inherited from ThriftGenerator

Inherited from AnyRef

Inherited from Any

Ungrouped