class
ImmutableGenerator extends GeneratorBase
Instance Constructors
-
new
ImmutableGenerator(pkgName: String, baseDir: File)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
val
baseDirectory: File
-
val
basePkgName: String
-
def
classContent(c: ClassDef): String
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): java.lang.Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
writeClass(c: ClassDef): Unit
-
def
writeDefinition(d: Definition): Unit
-
def
writeDefinitions(ds: Iterable[Definition]): Unit
-
def
writeEnum(e: EnumDef): Unit
-
def
writeSource(name: String, pkgName: String, content: String): Unit
Inherited from NotNull
Inherited from AnyRef
Inherited from Any
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