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 genJavaEquals(lhs: String, rhs: String, f0: FieldDefinition, fieldName: String, isJava: Boolean): String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  15. def genJavaHashCode(f0: FieldDefinition, fieldName: String, isJava: Boolean): String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  16. 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
  17. 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
  18. 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
  19. def generateHeader: String

    Attributes
    protected
    Definition Classes
    CodeGenerator
  20. 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
  21. 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
  22. final def getClass(): Class[_]

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

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

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isPrimitive(tpe: Type): Boolean

    Attributes
    protected
    Definition Classes
    CodeGenerator
  27. def isPrimitiveArray(tpe: Type): Boolean

    Attributes
    protected
    Definition Classes
    CodeGenerator
  28. def javaLangBoxedType(tpe: String): String

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

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

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

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

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

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

    Definition Classes
    AnyRef
  35. final def notify(): Unit

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

    Definition Classes
    AnyRef
  37. 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
  38. def primitiveType(tpe: String): Boolean

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

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CodeGenerator

Inherited from AnyRef

Inherited from Any

Ungrouped