public abstract static class PassFactory.Builder
extends java.lang.Object
PassFactory
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PassFactory |
build() |
abstract PassFactory.Builder |
setFeatureSet(FeatureSet x)
Set the features that are allowed to be in the AST when this pass runs.
|
PassFactory.Builder |
setFeatureSetForChecks()
Record that the pass will support all of the features required for checks passes.
|
PassFactory.Builder |
setFeatureSetForOptimizations()
Record that the pass will support all of the features required for optimization passes.
|
abstract PassFactory.Builder |
setInternalFactory(java.util.function.Function<AbstractCompiler,? extends CompilerPass> x) |
abstract PassFactory.Builder |
setName(java.lang.String x) |
abstract PassFactory.Builder |
setRunInFixedPointLoop(boolean b) |
public abstract PassFactory.Builder setName(java.lang.String x)
public abstract PassFactory.Builder setRunInFixedPointLoop(boolean b)
public abstract PassFactory.Builder setFeatureSet(FeatureSet x)
In general client code should call either setFeatureSetForChecks()
or setFeatureSetForOptimizations()
instead. This method exists only to support those methods
and special cases such as transpilation passes and tests.
public abstract PassFactory.Builder setInternalFactory(java.util.function.Function<AbstractCompiler,? extends CompilerPass> x)
public final PassFactory.Builder setFeatureSetForChecks()
public final PassFactory.Builder setFeatureSetForOptimizations()
public final PassFactory build()
Copyright © 2009-2020 Google. All Rights Reserved.