@GwtIncompatible @Immutable public abstract class CompilerBasedTransformer extends java.lang.Object implements Source.Transformer
| Modifier and Type | Class and Description |
|---|---|
static class |
CompilerBasedTransformer.CompileResult
The source together with the additional compilation results.
|
static class |
CompilerBasedTransformer.CompilerSupplier
Wraps the Compiler into a more relevant interface, making it easy to test the
CompilerBasedTransformer without depending on implementation details of the Compiler itself.
|
| Constructor and Description |
|---|
CompilerBasedTransformer(CompilerBasedTransformer.CompilerSupplier compilerSupplier) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.Optional<java.lang.String> |
getRuntime() |
abstract java.lang.String |
getTranformationName() |
Source |
transform(Source input)
The main transformation method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, asFunction, compose, identity, ofpublic CompilerBasedTransformer(CompilerBasedTransformer.CompilerSupplier compilerSupplier)
public abstract java.util.Optional<java.lang.String> getRuntime()
public abstract java.lang.String getTranformationName()
public Source transform(Source input)
Source.Transformertransform in interface Source.TransformerCopyright © 2009-2020 Google. All Rights Reserved.