Interface Source.Transformer
- All Known Implementing Classes:
CachedTransformer
,CompilerBasedTransformer
,CoverageInstrumenter
,Transpiler
- Enclosing class:
Source
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An automorphic transformation on sources.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Source.Transformer
andThen
(Source.Transformer after) Concatenates two Transformers.Converts this Transformer to a Function.default Source.Transformer
compose
(Source.Transformer before) Concatenates two Transformers.static Source.Transformer
identity()
Returns an identity transformer.static Source.Transformer
The main transformation method.
-
Method Details
-
transform
The main transformation method. -
of
-
identity
Returns an identity transformer. -
asFunction
Converts this Transformer to a Function. -
andThen
Concatenates two Transformers. -
compose
Concatenates two Transformers.
-