org.coursera.courier.generator

specs

package specs

Visibility
  1. Public
  2. All

Type Members

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

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

    A "raw" class definition.

    A "raw" class definition.

    Purely a reference to a type. The type should already exist and should not be generated.

    May refer to a primitive type.

    Main Uses: A custom class A coercer for a custom class ???

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

  4. abstract class Definition extends Deprecatable

    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

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

  7. trait FieldDefault extends AnyRef

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

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

  10. trait MaybeBoxable extends Definition

    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

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

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

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

    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

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

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

    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

Value Members

  1. object ArrayDefinition extends Serializable

  2. object Definition

  3. object MapDefinition extends Serializable

Ungrouped