class FileGenerator extends DefaultGenerator[Unit]
Writes each CompilationUnit to a file.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileGenerator
- DefaultGenerator
- Generator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new FileGenerator(config: GeneratorConfiguration)
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
- Definition Classes
- DefaultGenerator
-
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
- Definition Classes
- DefaultGenerator
-
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
- Definition Classes
- DefaultGenerator
-
def
generate(): Unit
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()
-
def
produce(units: Set[CompilationUnit]): Unit
Produces the Output value.
Produces the Output value.
- Definition Classes
- FileGenerator → DefaultGenerator
-
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( ... )