public abstract class PassFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PassFactory.HotSwapPassFactory
A pass-factory that is good for
HotSwapCompilerPass passes. |
Modifier | Constructor and Description |
---|---|
protected |
PassFactory(java.lang.String name,
boolean isOneTimePass) |
Modifier and Type | Method and Description |
---|---|
protected abstract CompilerPass |
create(AbstractCompiler compiler)
Creates a new compiler pass to be run.
|
static PassFactory |
createEmptyPass(java.lang.String name)
Create a no-op pass that can only run once.
|
protected FeatureSet |
featureSet()
The set of features that this pass understands.
|
protected HotSwapCompilerPass |
getHotSwapPass(AbstractCompiler compiler)
Any factory whose CompilerPass has a corresponding hot-swap version should
override this.
|
java.lang.String |
toString() |
protected PassFactory(java.lang.String name, boolean isOneTimePass)
name
- The name of the pass that this factory creates.isOneTimePass
- If true, the pass produced by this factory can
only be run once.public java.lang.String toString()
toString
in class java.lang.Object
protected abstract CompilerPass create(AbstractCompiler compiler)
protected FeatureSet featureSet()
protected HotSwapCompilerPass getHotSwapPass(AbstractCompiler compiler)
compiler
- The compiler that can has been used to do the full compile.public static PassFactory createEmptyPass(java.lang.String name)
Copyright © 2009-2017 Google. All Rights Reserved.