org.aspectj.ajdt.internal.compiler
Class AjCompilerAdapter
java.lang.Object
org.aspectj.ajdt.internal.compiler.AbstractCompilerAdapter
org.aspectj.ajdt.internal.compiler.AjCompilerAdapter
- All Implemented Interfaces:
- org.aspectj.ajdt.internal.compiler.ICompilerAdapter
public class AjCompilerAdapter
- extends AbstractCompilerAdapter
- Author:
- colyer
Adapts standard JDT Compiler to add in AspectJ specific behaviours.
|
Constructor Summary |
AjCompilerAdapter(org.aspectj.org.eclipse.jdt.internal.compiler.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 reflectable,
AjState incrementalCompilationState)
Create an adapter, and tell it everything it needs to now to drive the AspectJ parts of a compile cycle. |
|
Method Summary |
void |
acceptResult(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
|
void |
afterAnalysing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
afterCompiling(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration[] units)
|
void |
afterDietParsing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration[] units)
|
void |
afterGenerating(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
afterProcessing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit,
int unitIndex)
|
void |
afterResolving(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
beforeAnalysing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
beforeCompiling(org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits)
|
void |
beforeGenerating(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
beforeProcessing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
void |
beforeResolving(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
|
java.util.List |
getResultsPendingWeave()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjCompilerAdapter
public AjCompilerAdapter(org.aspectj.org.eclipse.jdt.internal.compiler.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 reflectable,
AjState incrementalCompilationState)
- Create an adapter, and tell it everything it needs to now to drive the AspectJ parts of a compile cycle.
- Parameters:
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.
beforeCompiling
public void beforeCompiling(org.aspectj.org.eclipse.jdt.internal.compiler.env.ICompilationUnit[] sourceUnits)
- Specified by:
beforeCompiling in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
beforeCompiling in class AbstractCompilerAdapter
beforeProcessing
public void beforeProcessing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
beforeProcessing in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
beforeProcessing in class AbstractCompilerAdapter
beforeResolving
public void beforeResolving(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
beforeResolving in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
beforeResolving in class AbstractCompilerAdapter
afterResolving
public void afterResolving(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
afterResolving in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
afterResolving in class AbstractCompilerAdapter
beforeAnalysing
public void beforeAnalysing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
beforeAnalysing in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
beforeAnalysing in class AbstractCompilerAdapter
afterAnalysing
public void afterAnalysing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
afterAnalysing in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
afterAnalysing in class AbstractCompilerAdapter
beforeGenerating
public void beforeGenerating(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
beforeGenerating in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
beforeGenerating in class AbstractCompilerAdapter
afterGenerating
public void afterGenerating(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
- Specified by:
afterGenerating in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
afterGenerating in class AbstractCompilerAdapter
afterCompiling
public void afterCompiling(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration[] units)
- Specified by:
afterCompiling in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
afterCompiling in class AbstractCompilerAdapter
afterProcessing
public void afterProcessing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit,
int unitIndex)
- Specified by:
afterProcessing in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
afterProcessing in class AbstractCompilerAdapter
acceptResult
public void acceptResult(org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult result)
- Specified by:
acceptResult in class AbstractCompilerAdapter
afterDietParsing
public void afterDietParsing(org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration[] units)
- Specified by:
afterDietParsing in interface org.aspectj.ajdt.internal.compiler.ICompilerAdapter- Specified by:
afterDietParsing in class AbstractCompilerAdapter
getResultsPendingWeave
public java.util.List getResultsPendingWeave()
- Specified by:
getResultsPendingWeave in class AbstractCompilerAdapter