Package

org.coursera.courier.generator

specs

Permalink

package specs

Visibility
  1. Public
  2. All

Type Members

  1. case class ArrayDefinition(spec: ArrayTemplateSpec) extends Definition with Product with Serializable

    Permalink
  2. case class ClassDefinition(spec: ClassTemplateSpec) extends Definition with MaybeBoxable with Product with Serializable

    Permalink

    A language specific class definition.

    A language specific class definition.

    Purely a reference to a class. The class must already exist and will not be generated.

    May refer to a primitive type.

    Usages: - A custom class - A coercer for a custom class

  3. case class CustomInfoDefinition(spec: CustomInfoSpec) extends Product with Serializable

    Permalink
  4. abstract class Definition extends Deprecatable

    Permalink

    Pegasus provides ClassTemplateSpecs to "flatten" the data schemas provided to a data binding generator and make it easier to write the generator.

    Pegasus provides ClassTemplateSpecs to "flatten" the data schemas provided to a data binding generator and make it easier to write the generator.

    These Definitions classes wrap ClassTemplateSpecs so that we can use idiomatic scala types in our templates. They also add language specific escaping and convenience functions specifically for generating data bindings for Scala.

    This trait is for all Scala classes that wrap ClassTemplateSpec and it's sub-classes, it represents the common properties shared by all pegasus data binding generator utility types.

  5. trait Deprecatable extends AnyRef

    Permalink
  6. case class EnumDefinition(spec: EnumTemplateSpec) extends Definition with Product with Serializable

    Permalink
  7. trait FieldDefault extends AnyRef

    Permalink
  8. case class FixedDefinition(spec: FixedTemplateSpec) extends Definition with Product with Serializable

    Permalink
  9. case class MapDefinition(spec: CourierMapTemplateSpec) extends Definition with Product with Serializable

    Permalink
  10. trait MaybeBoxable extends Definition

    Permalink

    Convenience trait for primitive types since they sometimes need to be boxed/unboxed.

  11. case class OptionalFieldDefault(default: Option[AnyRef]) extends FieldDefault with Product with Serializable

    Permalink
  12. case class PrimitiveDefinition(spec: PrimitiveTemplateSpec) extends Definition with MaybeBoxable with Product with Serializable

    Permalink
  13. case class RecordDefinition(spec: RecordTemplateSpec) extends Definition with Product with Serializable

    Permalink
  14. case class RecordField(field: Field) extends Deprecatable with Product with Serializable

    Permalink

    The field of a record, may be either a field directly defined in the record or an "include" field.

  15. case class RequiredFieldDefault(default: AnyRef) extends FieldDefault with Product with Serializable

    Permalink
  16. case class TyperefDefinition(spec: TyperefTemplateSpec) extends Definition with Product with Serializable

    Permalink
  17. case class UnionDefinition(spec: UnionTemplateSpec) extends Definition with Product with Serializable

    Permalink

    Union names are inferred from the containing type or typeref.

    Union names are inferred from the containing type or typeref.

    Note that all unions are defined anonymously, so pegasus makes a best effort to give them a reasonable name.

    E.g. A union defined as the type of a field of a record will be named after that field.

  18. case class UnionMemberDefinition(spec: Member) extends Product with Serializable

    Permalink

Value Members

  1. object ArrayDefinition extends Serializable

    Permalink
  2. object Definition

    Permalink
  3. object MapDefinition extends Serializable

    Permalink
  4. object TyperefDefinition extends Serializable

    Permalink

Ungrouped