abstract class DefaultGenerator[Output] extends Generator[Output]
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultGenerator
- Generator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new DefaultGenerator(config: GeneratorConfiguration)
Abstract Value Members
-
abstract
def
produce(units: Set[CompilationUnit]): Output
Produces the Output value.
Produces the Output value.
- Attributes
- protected
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- val config: GeneratorConfiguration
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filePath(unit: CompilationUnit): Path
Create a file path from the given compilation unit.
Create a file path from the given compilation unit.
From a design perspective, this shouldn't actually be part of DefaultGenerator but rather FileGenerator. However, Scalafmt requires the file path of the generated "file".
- Attributes
- protected
-
lazy val
formattingUnitEmitter: CompilationUnitEmitter
This emitter formats all compilation units either with Scalafmt or a code formatter of your choice if you override this.
This emitter formats all compilation units either with Scalafmt or a code formatter of your choice if you override this. Wraps the configured unit emitter.
- Attributes
- protected
-
def
generate(): Output
Run the generator and produce an Output value.
Run the generator and produce an Output value.
- Definition Classes
- DefaultGenerator → Generator
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )