xsbt.datatype

ImmutableGenerator

class ImmutableGenerator extends GeneratorBase

Creates immutable datatype classes in Java from the intermediate Definition representation.

A ClassDef is written as a class with an optional parent class. The class has a single constructor with parameters for all declared and inherited members. Declared members are listed first in the constructor. Inherited members are passed to the super constructor. The value of each member is held in a private final field and.is accessed by a method of the same name.

A toString method is generated for debugging. The classes implement java.io.Serializable.

.@param baseDirectory output directory for sources

Linear Supertypes
GeneratorBase, NotNull, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ImmutableGenerator
  2. GeneratorBase
  3. NotNull
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ImmutableGenerator(pkgName: String, baseDir: File)

    pkgName

    package that classes will be defined in

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. val baseDirectory: File

    Definition Classes
    GeneratorBase
  8. val basePkgName: String

    Definition Classes
    GeneratorBase
  9. def classContent(c: ClassDef): String

  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. def writeClass(c: ClassDef): Unit

    Definition Classes
    ImmutableGeneratorGeneratorBase
  26. def writeDefinition(d: Definition): Unit

    Definition Classes
    GeneratorBase
  27. def writeDefinitions(ds: Iterable[Definition]): Unit

    Definition Classes
    GeneratorBase
  28. def writeEnum(e: EnumDef): Unit

    Definition Classes
    GeneratorBase
  29. def writeSource(name: String, pkgName: String, content: String): Unit

    Definition Classes
    GeneratorBase

Inherited from GeneratorBase

Inherited from NotNull

Inherited from AnyRef

Inherited from Any