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 ICompilerAdapterafterDietParsing in class AbstractCompilerAdapterpublic void beforeCompiling(ICompilationUnit[] sourceUnits)
beforeCompiling in interface ICompilerAdapterbeforeCompiling in class AbstractCompilerAdapterpublic void beforeProcessing(CompilationUnitDeclaration unit)
beforeProcessing in interface ICompilerAdapterbeforeProcessing in class AbstractCompilerAdapterpublic void beforeResolving(CompilationUnitDeclaration unit)
beforeResolving in interface ICompilerAdapterbeforeResolving in class AbstractCompilerAdapterpublic void afterResolving(CompilationUnitDeclaration unit)
afterResolving in interface ICompilerAdapterafterResolving in class AbstractCompilerAdapterpublic void beforeAnalysing(CompilationUnitDeclaration unit)
beforeAnalysing in interface ICompilerAdapterbeforeAnalysing in class AbstractCompilerAdapterpublic void afterAnalysing(CompilationUnitDeclaration unit)
afterAnalysing in interface ICompilerAdapterafterAnalysing in class AbstractCompilerAdapterpublic void beforeGenerating(CompilationUnitDeclaration unit)
beforeGenerating in interface ICompilerAdapterbeforeGenerating in class AbstractCompilerAdapterpublic void afterGenerating(CompilationUnitDeclaration unit)
afterGenerating in interface ICompilerAdapterafterGenerating in class AbstractCompilerAdapterpublic void afterCompiling(CompilationUnitDeclaration[] units)
afterCompiling in interface ICompilerAdapterafterCompiling in class AbstractCompilerAdapterpublic void afterProcessing(CompilationUnitDeclaration unit, int unitIndex)
afterProcessing in interface ICompilerAdapterafterProcessing in class AbstractCompilerAdapterpublic void acceptResult(CompilationResult result)
acceptResult in class AbstractCompilerAdapterpublic static java.lang.String getPipelineDebugOutput(java.lang.String key)
public java.util.List<InterimCompilationResult> getResultsPendingWeave()
getResultsPendingWeave in class AbstractCompilerAdapter