public abstract class PassFactory extends 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(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(String name)
Create a no-op pass that can only run once.
|
protected HotSwapCompilerPass |
getHotSwapPass(AbstractCompiler compiler)
Any factory whose CompilerPass has a corresponding hot-swap version should
override this.
|
protected PassFactory(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.protected abstract CompilerPass create(AbstractCompiler compiler)
protected HotSwapCompilerPass getHotSwapPass(AbstractCompiler compiler)
compiler - The compiler that can has been used to do the full compile.public static PassFactory createEmptyPass(String name)
Copyright © 2009-2016 Google. All Rights Reserved.