Class/Object

sbt.contraband

CodecCodeGen

Related Docs: object CodecCodeGen | package contraband

Permalink

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
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])

    Permalink

    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

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

    Permalink
    Definition Classes
    CodeGenerator

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def boxedType(tpe: String): String

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

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

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

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

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

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

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

    Permalink

    Generate the code corresponding to d.

    Generate the code corresponding to d.

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

    Permalink

    Generate the code corresponding to all definitions in s.

    Generate the code corresponding to all definitions in s.

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

    Permalink

    Generate the code corresponding to the enumeration e.

    Generate the code corresponding to the enumeration e.

    Definition Classes
    CodecCodeGenCodeGenerator
  15. def generateHeader: String

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

    Permalink

    Generate the code corresponding to the interface i.

    Generate the code corresponding to the interface i.

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

    Permalink

    Generate the code corresponding to the record r.

    Generate the code corresponding to the record r.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. implicit object indentationConfiguration extends IndentationConfiguration

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def javaLangBoxedType(tpe: String): String

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    CodeGenerator
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def perVersionNumber[T](since: VersionNumber, fields: List[FieldDefinition])(op: (List[FieldDefinition], List[FieldDefinition]) ⇒ T): List[T]

    Permalink

    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
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CodeGenerator

Inherited from AnyRef

Inherited from Any

Ungrouped