sbt.contraband

CodecCodeGen

class CodecCodeGen extends CodeGenerator

Code generator to produce a codec for a given type.

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

Instance Constructors

  1. new CodecCodeGen(codecParents: List[String], instantiateJavaLazy: (String) ⇒ String, javaOption: String, scalaArray: String, formatsForType: (Type) ⇒ List[String], includedSchemas: List[Document])

    codecParents

    The parents that appear in the self type of all codecs, and the full codec inherits from.

    instantiateJavaLazy

    How to transform an expression to its lazy equivalent in Java.

    formatsForType

    Given a TpeRef t, returns the list of codecs needed to encode t.

    includedSchemas

    List of schemas that could be referenced.

Type Members

  1. implicit class IndentationAwareString extends AnyRef

    Attributes
    protected
    Definition Classes
    CodeGenerator
  2. implicit class ListMapOp[T] extends AnyRef

    Definition Classes
    CodeGenerator

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 boxedType(tpe: String): String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def containsOptional(fields: List[FieldDefinition]): Boolean

    Attributes
    protected
    Definition Classes
    CodeGenerator
  10. def containsStrictOptional(fields: List[FieldDefinition]): Boolean

    Attributes
    protected
    Definition Classes
    CodeGenerator
  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def generate(s: Document, d: TypeDefinition): ListMap[File, String]

    Generate the code corresponding to d.

    Generate the code corresponding to d.

    Attributes
    protected
    Definition Classes
    CodecCodeGenCodeGenerator
  15. def generate(s: Document): ListMap[File, String]

    Generate the code corresponding to all definitions in s.

    Generate the code corresponding to all definitions in s.

    Definition Classes
    CodecCodeGenCodeGenerator
  16. def generateEnum(s: Document, e: EnumTypeDefinition): ListMap[File, String]

    Generate the code corresponding to the enumeration e.

    Generate the code corresponding to the enumeration e.

    Definition Classes
    CodecCodeGenCodeGenerator
  17. def generateHeader: String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  18. def generateInterface(s: Document, i: InterfaceTypeDefinition): ListMap[File, String]

    Generate the code corresponding to the interface i.

    Generate the code corresponding to the interface i.

    Definition Classes
    CodecCodeGenCodeGenerator
  19. def generateRecord(s: Document, r: ObjectTypeDefinition): ListMap[File, String]

    Generate the code corresponding to the record r.

    Generate the code corresponding to the record r.

    Definition Classes
    CodecCodeGenCodeGenerator
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. implicit object indentationConfiguration extends IndentationConfiguration

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def javaLangBoxedType(tpe: String): String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  25. def localFields(cl: RecordLikeDefinition, parents: List[InterfaceTypeDefinition]): List[FieldDefinition]

    Attributes
    protected
    Definition Classes
    CodeGenerator
  26. def lookupChildLeaves(s: Document, interface: InterfaceTypeDefinition): List[TypeDefinition]

    Attributes
    protected
    Definition Classes
    CodeGenerator
  27. def lookupChildren(s: Document, interface: InterfaceTypeDefinition): List[TypeDefinition]

    Attributes
    protected
    Definition Classes
    CodeGenerator
  28. def lookupInterface(s: Document, ref: (Option[String], String)): InterfaceTypeDefinition

    Attributes
    protected
    Definition Classes
    CodeGenerator
  29. def lookupInterfaces(s: Document, interfaceRefs: List[NamedType]): List[InterfaceTypeDefinition]

    Attributes
    protected
    Definition Classes
    CodeGenerator
  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. final def perVersionNumber[T](since: VersionNumber, fields: List[FieldDefinition])(op: (List[FieldDefinition], List[FieldDefinition]) ⇒ T): List[T]

    Run an operation op for each different version number that affects the fields fields.

    Run an operation op for each different version number that affects the fields fields.

    Attributes
    protected
    Definition Classes
    CodeGenerator
  34. def primitiveType(tpe: String): Boolean

    Attributes
    protected
    Definition Classes
    CodeGenerator
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. def unboxedType(tpe: String): String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CodeGenerator

Inherited from AnyRef

Inherited from Any

Ungrouped