c

com.twitter.scrooge.java_generator

ApacheJavaGenerator

class ApacheJavaGenerator extends Generator

Linear Supertypes
Generator, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApacheJavaGenerator
  2. Generator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ApacheJavaGenerator(resolvedDoc: ResolvedDocument, defaultNamespace: String, templateCache: TrieMap[String, Mustache])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(serviceOptions: Set[ServiceOption], outputPath: File, dryRun: Boolean = false, genAdapt: Boolean = false): Iterable[File]

    genAdapt

    Generate code for Adaptive Decoding. This flag is only used for scala presently.

    Definition Classes
    ApacheJavaGeneratorGenerator
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. var counter: Int
  8. def deepContainer(sourceNamePart1: String, sourceNamePart2: Option[String], resultName: String, fieldType: FieldType, ns: Option[Identifier], operation: DeepGeneratorOperation): String
  9. def deepNonContainer(sourceName: String, fieldType: FieldType, ns: Option[Identifier], operation: DeepGeneratorOperation): String
  10. def deserializeField(fieldType: FieldType, fieldName: String, ns: Option[Identifier], prefix: String = ""): String
  11. val doc: Document
    Attributes
    protected
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def fieldValueMetaData(fieldType: FieldType, ns: Option[Identifier]): String
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getIncludeNamespace(includeFileName: String): Identifier
  18. def getNamespace(doc: Document): Identifier
  19. def getTypeString(fieldType: FunctionType): String
  20. def getTypeStringWithEnumMapping(fieldType: FunctionType): String
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def includeMap: Map[String, ResolvedDocument]
    Definition Classes
    Generator
  23. def initContainerFieldPrelude(fieldType: FunctionType): String
  24. def initField(fieldType: FunctionType, inContainer: Boolean = false): String
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isNullableType(t: FunctionType): Boolean
  27. val namespace: Identifier
  28. val namespaceLanguage: String

    Used to find the namespace in included files.

    Used to find the namespace in included files. This does not need to match the corresponding GeneratorFactory.language.

    Definition Classes
    ApacheJavaGeneratorGenerator
  29. def namespacedFolder(destFolder: File, namespace: String, dryRun: Boolean): File
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def printConstValue(name: String, fieldType: FieldType, value: RHS, ns: Option[Identifier], in_static: Boolean = false, defval: Boolean = false): String
  34. def qualifyNamedType(sid: SimpleID, scopePrefixOption: Option[Identifier], fileNamespaceOption: Option[Identifier] = None): Identifier

    sid

    identifier for the named type

    scopePrefixOption

    name of the file name for this named type. If it is present the named type is in a different file (and package) from the file being generated.

    fileNamespaceOption

    The namespace of the file being generated. If not present do not qualify this named type with a package.

    returns

    An identifier for the passed in type

  35. def renderMustache(template: String, controller: Any = this): String
  36. var serEnumType: Boolean
  37. def serializeField(fieldType: FieldType, fieldName: String, ns: Option[Identifier], prefix: String = ""): String
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def tmp(prefix: String = "tmp"): String
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. def typeName(t: FunctionType, inContainer: Boolean = false, inInit: Boolean = false, skipGeneric: Boolean = false, fileNamespace: Option[Identifier] = None): String

    fileNamespace

    The namespace to add to named types if they are defined in the file being generated. If you do not want a fully qualified name for types in the same package pass in None

  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Generator

Inherited from AnyRef

Inherited from Any

Ungrouped