public class AjPipeliningCompilerAdapter extends AbstractCompilerAdapter
Modifier and Type | Field and Description |
---|---|
static java.util.Hashtable<java.lang.String,java.lang.String> |
pipelineOutput |
static boolean |
pipelineTesting
SECRET: FOR TESTING - this can be used to collect information that tests can verify.
|
Constructor and Description |
---|
AjPipeliningCompilerAdapter(Compiler compiler,
boolean isBatchCompile,
BcelWorld world,
BcelWeaver weaver,
EclipseFactory eFactory,
IIntermediateResultsRequestor intRequestor,
IProgressListener progressListener,
IOutputClassFileNameProvider outputFileNameProvider,
IBinarySourceProvider binarySourceProvider,
java.util.Map fullBinarySourceEntries,
boolean isXterminateAfterCompilation,
boolean proceedOnError,
boolean noAtAspectJProcessing,
boolean makeReflectable,
AjState incrementalCompilationState)
Create an adapter, and tell it everything it needs to now to drive the AspectJ parts of a compile cycle.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptResult(CompilationResult result) |
void |
afterAnalysing(CompilationUnitDeclaration unit) |
void |
afterCompiling(CompilationUnitDeclaration[] units) |
void |
afterDietParsing(CompilationUnitDeclaration[] units)
In a pipelining compilation system, we need to ensure aspects are through the pipeline first.
|
void |
afterGenerating(CompilationUnitDeclaration unit) |
void |
afterProcessing(CompilationUnitDeclaration unit,
int unitIndex) |
void |
afterResolving(CompilationUnitDeclaration unit) |
void |
beforeAnalysing(CompilationUnitDeclaration unit) |
void |
beforeCompiling(ICompilationUnit[] sourceUnits) |
void |
beforeGenerating(CompilationUnitDeclaration unit) |
void |
beforeProcessing(CompilationUnitDeclaration unit) |
void |
beforeResolving(CompilationUnitDeclaration unit) |
static java.lang.String |
getPipelineDebugOutput(java.lang.String key) |
java.util.List<InterimCompilationResult> |
getResultsPendingWeave() |
public static boolean pipelineTesting
public static java.util.Hashtable<java.lang.String,java.lang.String> pipelineOutput
public AjPipeliningCompilerAdapter(Compiler compiler, boolean isBatchCompile, BcelWorld world, BcelWeaver weaver, EclipseFactory eFactory, IIntermediateResultsRequestor intRequestor, IProgressListener progressListener, IOutputClassFileNameProvider outputFileNameProvider, IBinarySourceProvider binarySourceProvider, java.util.Map fullBinarySourceEntries, boolean isXterminateAfterCompilation, boolean proceedOnError, boolean noAtAspectJProcessing, boolean makeReflectable, AjState incrementalCompilationState)
compiler
- the JDT compiler that produces class files from sourceisBatchCompile
- true if this is a full build (non-incremental)world
- the bcelWorld used for type resolution during weavingweaver
- the weaverintRequestor
- recipient of interim compilation results from compiler (pre-weave)outputFileNameProvider
- implementor of a strategy providing output file names for resultsbinarySourceEntries
- binary source that we didn't compile, but that we need to weaveresultSetForFullWeave
- if we are doing an incremental build, and the weaver determines that we need to weave the world,
this is the set of intermediate results that will be passed to the weaver.public void afterDietParsing(CompilationUnitDeclaration[] units)
afterDietParsing
in interface ICompilerAdapter
afterDietParsing
in class AbstractCompilerAdapter
public void beforeCompiling(ICompilationUnit[] sourceUnits)
beforeCompiling
in interface ICompilerAdapter
beforeCompiling
in class AbstractCompilerAdapter
public void beforeProcessing(CompilationUnitDeclaration unit)
beforeProcessing
in interface ICompilerAdapter
beforeProcessing
in class AbstractCompilerAdapter
public void beforeResolving(CompilationUnitDeclaration unit)
beforeResolving
in interface ICompilerAdapter
beforeResolving
in class AbstractCompilerAdapter
public void afterResolving(CompilationUnitDeclaration unit)
afterResolving
in interface ICompilerAdapter
afterResolving
in class AbstractCompilerAdapter
public void beforeAnalysing(CompilationUnitDeclaration unit)
beforeAnalysing
in interface ICompilerAdapter
beforeAnalysing
in class AbstractCompilerAdapter
public void afterAnalysing(CompilationUnitDeclaration unit)
afterAnalysing
in interface ICompilerAdapter
afterAnalysing
in class AbstractCompilerAdapter
public void beforeGenerating(CompilationUnitDeclaration unit)
beforeGenerating
in interface ICompilerAdapter
beforeGenerating
in class AbstractCompilerAdapter
public void afterGenerating(CompilationUnitDeclaration unit)
afterGenerating
in interface ICompilerAdapter
afterGenerating
in class AbstractCompilerAdapter
public void afterCompiling(CompilationUnitDeclaration[] units)
afterCompiling
in interface ICompilerAdapter
afterCompiling
in class AbstractCompilerAdapter
public void afterProcessing(CompilationUnitDeclaration unit, int unitIndex)
afterProcessing
in interface ICompilerAdapter
afterProcessing
in class AbstractCompilerAdapter
public void acceptResult(CompilationResult result)
acceptResult
in class AbstractCompilerAdapter
public static java.lang.String getPipelineDebugOutput(java.lang.String key)
public java.util.List<InterimCompilationResult> getResultsPendingWeave()
getResultsPendingWeave
in class AbstractCompilerAdapter