@GwtIncompatible 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, wait
andThen, asFunction, compose, identity, of
public 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.Transformer
transform
in interface Source.Transformer
Copyright © 2009-2018 Google. All Rights Reserved.