com.twitter.scrooge.backend

ScalaGenerator

class ScalaGenerator extends Generator

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaGenerator
  2. Generator
  3. EnumTemplate
  4. ConstsTemplate
  5. ServiceTemplate
  6. StructTemplate
  7. AnyRef
  8. 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, generationDate: String, enablePassthrough: Boolean)

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. val enablePassthrough: Boolean

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

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

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

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

    Definition Classes
    StructTemplate
  17. val fileExtension: String

    Definition Classes
    ScalaGeneratorGenerator
  18. def finagleClient(s: Service): Dictionary

    Definition Classes
    ServiceTemplate
  19. def finagleService(s: Service): Dictionary

    Definition Classes
    ServiceTemplate
  20. def finalize(): Unit

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

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

    Definition Classes
    Generator
  23. def genConstant(constant: RHS, mutable: Boolean = false): CodeFragment

    Definition Classes
    Generator
  24. def genDefaultFieldValue(f: Field): Option[CodeFragment]

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

    Definition Classes
    Generator
  26. 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
  27. def genEnum(enum: EnumRHS): CodeFragment

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

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

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

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

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

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

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

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

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

    Definition Classes
    ScalaGeneratorGenerator
  37. 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
  38. 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
  39. def genType(t: FunctionType, mutable: Boolean = false): CodeFragment

    Definition Classes
    ScalaGeneratorGenerator
  40. val generationDate: String

    Definition Classes
    ScalaGeneratorGenerator
  41. final def getClass(): Class[_]

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

    Attributes
    protected
    Definition Classes
    Generator
  43. def getNamespace(doc: Document): Identifier

    Definition Classes
    Generator
  44. 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
  45. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  46. 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
  47. def internalArgsStruct(f: Function): FunctionArgs

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

    Definition Classes
    ServiceTemplate
  49. 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
  50. def internalResultStruct(f: Function): FunctionResult

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

    Definition Classes
    ServiceTemplate
  52. 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
  53. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

    Definition Classes
    AnyRef
  60. def ostrichService(s: Service): Dictionary

    Definition Classes
    ServiceTemplate
  61. 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
  62. def quote(str: String): String

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

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

    Definition Classes
    StructTemplate
  65. def serviceDict(s: JavaService, namespace: Identifier, includes: Seq[Include], serviceOptions: Set[ServiceOption]): Dictionary

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

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

    Definition Classes
    AnyRef
  68. val templateDirName: String

    Definition Classes
    ScalaGeneratorGenerator
  69. lazy val templates: HandlebarLoader

    Definition Classes
    Generator
  70. def toDictionary(function: Function, async: Boolean): Dictionary

    Definition Classes
    ServiceTemplate
  71. 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
  72. 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
  73. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Generator

Inherited from EnumTemplate

Inherited from ConstsTemplate

Inherited from ServiceTemplate

Inherited from StructTemplate

Inherited from AnyRef

Inherited from Any

Ungrouped