public class AjCompiler
extends java.lang.Object
An AjCompiler is associated with one id, therefore a new one needs to be created for a new id (project, .lst file etc.). It is the responsibility of the tools to manage the lifecycle of the AjCompiler's.
| Constructor and Description |
|---|
AjCompiler(java.lang.String compilerId,
ICompilerConfiguration compilerConfig,
IBuildProgressMonitor buildProgressMonitor,
IBuildMessageHandler buildMessageHandler)
Creates a new AjCompiler for the given id, ICompilerConfiguration, IBuildProgressMonitor and IBuildMessageHandler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDependencies(java.io.File file,
java.lang.String[] typeNameDependencies) |
void |
build()
Perform an incremental build if possible, otherwise it will default to a full build.
|
void |
buildFresh()
Perform a full build.
|
void |
clearLastState()
Clear the incremental state associated with this AjCompiler from the IncrementalStateManager.
|
AjdeCoreBuildManager |
getBuildManager() |
IBuildProgressMonitor |
getBuildProgressMonitor() |
ICompilerConfiguration |
getCompilerConfiguration() |
java.lang.Object |
getCustomMungerFactory() |
java.lang.String |
getId() |
IBuildMessageHandler |
getMessageHandler() |
AsmManager |
getModel() |
boolean |
isJava6Compatible() |
void |
setCustomMungerFactory(java.lang.Object factory)
Set a CustomMungerFactory to the compiler's weaver
The type of factory should be org.aspectj.weaver.CustomMungerFactory but due to dependency problem of project ajde.core, it
is Object for now.
|
public AjCompiler(java.lang.String compilerId,
ICompilerConfiguration compilerConfig,
IBuildProgressMonitor buildProgressMonitor,
IBuildMessageHandler buildMessageHandler)
compilerId - - Unique String used to identify this AjCompilercompilerConfig - - ICompilerConfiguration implementationbuildProgressMonitor - - IBuildProgressMonitor implementationbuildMessageHandler - - IBuildMessageHandler implementationpublic java.lang.String getId()
public ICompilerConfiguration getCompilerConfiguration()
public IBuildProgressMonitor getBuildProgressMonitor()
public IBuildMessageHandler getMessageHandler()
public void build()
public void buildFresh()
public void clearLastState()
public boolean addDependencies(java.io.File file,
java.lang.String[] typeNameDependencies)
public boolean isJava6Compatible()
public void setCustomMungerFactory(java.lang.Object factory)
factory - public java.lang.Object getCustomMungerFactory()
public AsmManager getModel()
public AjdeCoreBuildManager getBuildManager()