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.TransformerandThen(Source.Transformer after) Concatenates two Transformers.Converts this Transformer to a Function.default Source.Transformercompose(Source.Transformer before) Concatenates two Transformers.static Source.Transformeridentity()Returns an identity transformer.static Source.TransformerThe 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.
-