com.twitter.scrooge.backend

ScalaGenerator

class ScalaGenerator extends Generator with ThriftGenerator

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaGenerator
  2. ThriftGenerator
  3. Generator
  4. EnumTemplate
  5. ConstsTemplate
  6. ServiceTemplate
  7. StructTemplate
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaGenerator(includeMap: Map[String, ResolvedDocument], defaultNamespace: String, experimentFlags: Seq[String])

Type Members

  1. case class Binding[FT <: FieldType](name: String, fieldType: FT) extends Product with Serializable

    Definition Classes
    StructTemplate

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. val TypeTemplate: Dictionary

    Definition Classes
    StructTemplate
  7. def apply(_doc: Document, serviceOptions: Set[ServiceOption], outputPath: File, dryRun: Boolean = false): Iterable[File]

    Definition Classes
    Generator
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def constDict(namespace: Identifier, consts: Seq[ConstDefinition]): Dictionary

    Definition Classes
    ConstsTemplate
  11. val defaultNamespace: String

    Definition Classes
    ScalaGeneratorGenerator
  12. def enumDict(namespace: Identifier, enum: Enum): Dictionary

    Definition Classes
    EnumTemplate
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. val experimentFlags: Seq[String]

    Definition Classes
    ScalaGeneratorGenerator
  16. def fieldsToDict(fields: Seq[Field], blacklist: Seq[String]): Seq[Dictionary]

    Definition Classes
    StructTemplate
  17. val fileExtension: String

    Definition Classes
    ScalaGeneratorGenerator
  18. def finagleClient(service: Service, namespace: Identifier): Dictionary

    Definition Classes
    ServiceTemplate
  19. def finagleClientFile(packageDir: File, service: Service, options: Set[ServiceOption]): Option[File]

    Definition Classes
    ScalaGeneratorGenerator
  20. def finagleService(service: Service, namespace: Identifier): Dictionary

    Definition Classes
    ServiceTemplate
  21. def finagleServiceFile(packageDir: File, service: Service, options: Set[ServiceOption]): Option[File]

    Definition Classes
    ScalaGeneratorGenerator
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def genBaseFinagleService: CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  24. def genConstType(t: FunctionType): CodeFragment

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

    Definition Classes
    ScalaGeneratorGenerator
  26. def genDefaultFieldValue(f: Field): Option[CodeFragment]

    Definition Classes
    Generator
  27. def genDefaultReadValue(f: Field): CodeFragment

    Definition Classes
    Generator
  28. def genDefaultValue(fieldType: FieldType, mutable: Boolean = false): CodeFragment

    The default value for the specified type and mutability.

    The default value for the specified type and mutability.

    Definition Classes
    ScalaGeneratorGenerator
  29. def genEnum(enum: EnumRHS, fieldType: Option[FieldType] = None): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  30. def genFieldParams(fields: Seq[Field], asVal: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  31. def genFieldType(f: Field, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  32. def genID(data: Identifier): CodeFragment

    Definition Classes
    Generator
  33. def genList(list: ListRHS, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  34. def genMap(map: MapRHS, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  35. def genPrimitiveType(t: FunctionType, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  36. def genProtocolReadMethod(t: FunctionType): CodeFragment

    Definition Classes
    Generator
  37. def genProtocolWriteMethod(t: FunctionType): CodeFragment

    Definition Classes
    Generator
  38. def genSet(set: SetRHS, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  39. def genStruct(struct: StructRHS): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  40. def genToImmutable(f: Field): CodeFragment

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

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

    Definition Classes
    ScalaGeneratorGenerator
  41. def genToImmutable(t: FieldType): CodeFragment

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

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

    Definition Classes
    ScalaGeneratorGenerator
  42. def genType(t: FunctionType, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  43. def genWireConstType(t: FunctionType): CodeFragment

    Definition Classes
    StructTemplate
  44. final def getClass(): Class[_]

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

    Attributes
    protected
    Definition Classes
    ScalaGeneratorGenerator
  46. def getNamespace(doc: Document): Identifier

    Definition Classes
    ScalaGeneratorGenerator
  47. def getParentFinagleClient(p: ServiceParent): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  48. def getParentFinagleService(p: ServiceParent): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  49. 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.

    Definition Classes
    Generator
  50. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  51. val includeMap: Map[String, ResolvedDocument]

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

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

    Definition Classes
    ScalaGeneratorGenerator
  52. def internalArgsStruct(f: Function): FunctionArgs

    Definition Classes
    ServiceTemplate
  53. def internalArgsStructName(f: Function): SimpleID

    Definition Classes
    ServiceTemplate
  54. def internalArgsStructNameForWire(f: Function): String

    The name used in RPC request, this needs to be same as Apache compiler

    The name used in RPC request, this needs to be same as Apache compiler

    Definition Classes
    ServiceTemplate
  55. def internalResultStruct(f: Function): FunctionResult

    Definition Classes
    ServiceTemplate
  56. def internalResultStructName(f: Function): SimpleID

    Definition Classes
    ServiceTemplate
  57. def internalResultStructNameForWire(f: Function): String

    The name used in RPC request, this needs to be same as Apache compiler

    The name used in RPC request, this needs to be same as Apache compiler

    Definition Classes
    ServiceTemplate
  58. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    Generator
  60. def isPrimitive(t: FunctionType): Boolean

    Definition Classes
    Generator
  61. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  62. def normalizeCase[N <: Node](node: N): N

    Definition Classes
    ScalaGeneratorGenerator
  63. final def notify(): Unit

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

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

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

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

    Definition Classes
    Generator
  66. def quote(str: String): String

    Definition Classes
    Generator
  67. def quoteKeyword(str: String): String

    Definition Classes
    ScalaGeneratorGenerator
  68. def readWriteInfo[T <: FieldType](sid: SimpleID, t: FieldType): Dictionary

    Definition Classes
    StructTemplate
  69. def serviceDict(service: Service, namespace: Identifier, includes: Seq[Include], options: Set[ServiceOption]): Dictionary

    Definition Classes
    ServiceTemplate
  70. def structDict(struct: StructLike, namespace: Option[Identifier], includes: Seq[Include], serviceOptions: Set[ServiceOption]): Dictionary

    Definition Classes
    StructTemplate
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  72. val templateDirName: String

    Definition Classes
    ScalaGeneratorGenerator
  73. lazy val templates: HandlebarLoader

    Definition Classes
    Generator
  74. def toDictionary(function: Function, generic: Option[String]): Dictionary

    Definition Classes
    ServiceTemplate
  75. 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.

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

    Definition Classes
    ScalaGeneratorGenerator
  76. 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.

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

    Definition Classes
    ScalaGeneratorGenerator
  77. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. var warnOnJavaNamespaceFallback: Boolean

Inherited from ThriftGenerator

Inherited from Generator

Inherited from EnumTemplate

Inherited from ConstsTemplate

Inherited from ServiceTemplate

Inherited from StructTemplate

Inherited from AnyRef

Inherited from Any

Ungrouped