org.aspectj.ajdt.internal.core.builder
Class AjBuildConfig

java.lang.Object
  extended by org.aspectj.ajdt.internal.core.builder.AjBuildConfig
All Implemented Interfaces:
CompilerConfigurationChangeFlags

public class AjBuildConfig
extends java.lang.Object
implements CompilerConfigurationChangeFlags

All configuration information needed to run the AspectJ compiler. Compiler options (as opposed to path information) are held in an AjCompilerOptions instance


Nested Class Summary
static class AjBuildConfig.BinarySourceFile
           
 
Field Summary
static java.lang.String AJLINT_DEFAULT
           
static java.lang.String AJLINT_ERROR
           
static java.lang.String AJLINT_IGNORE
           
static java.lang.String AJLINT_WARN
           
 
Fields inherited from interface org.aspectj.ajdt.internal.core.builder.CompilerConfigurationChangeFlags
ASPECTPATH_CHANGED, CLASSPATH_CHANGED, EVERYTHING, INJARS_CHANGED, INPATH_CHANGED, JAVAOPTIONS_CHANGED, NO_CHANGES, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED, OUTPUTDESTINATIONS_CHANGED, PROJECTSOURCEFILES_CHANGED, PROJECTSOURCERESOURCES_CHANGED, XMLCONFIG_CHANGED
 
Constructor Summary
AjBuildConfig()
          Intialises the javaOptions Map to hold the default JDT Compiler settings.
 
Method Summary
 void doNotProceed()
           
 java.util.List<java.io.File> getAspectpath()
           
 boolean getBehaveInJava5Way()
           
 java.util.List<AjBuildConfig.BinarySourceFile> getBinaryFiles()
          returned files includes all .class files found in a directory on the inpath, but does not include .class files contained within jars.
 java.util.List<java.lang.String> getBootclasspath()
           
 int getChanged()
          Return the bit flags indicating what has changed since the last time this config was used.
 java.util.List<java.lang.String> getClasspath()
          This does not include -bootclasspath but includes -extdirs and -classpath
 java.util.List<java.lang.String> getClasspathElementsWithModifiedContents()
           
 CompilationResultDestinationManager getCompilationResultDestinationManager()
           
 java.io.File getConfigFile()
           
 java.util.List<java.io.File> getFiles()
          returned files includes files explicitly listed on command-line files listed by reference in argument list files files contained in sourceRootDir if that exists
 java.util.List<java.lang.String> getFullClasspath()
           
 java.util.List<java.io.File> getInJars()
           
 java.util.List<java.io.File> getInpath()
           
 java.lang.String getLintMode()
           
 java.io.File getLintSpecFile()
           
 java.util.List<java.io.File> getModifiedFiles()
           
 AjCompilerOptions getOptions()
           
 java.io.File getOutputDir()
           
 java.io.File getOutputJar()
           
 java.lang.String getOutxmlName()
           
 boolean getProceedOnError()
           
 boolean getShowWeavingInformation()
           
 java.util.Map<java.lang.String,java.io.File> getSourcePathResources()
           
 java.util.List<java.io.File> getSourceRoots()
           
 java.lang.String getTargetAspectjRuntimeLevel()
           
 java.lang.String getXconfigurationInfo()
           
 java.lang.String getXJoinpoints()
           
 java.util.List<java.io.File> getXmlFiles()
           
 boolean hasSources()
           
 void installGlobals(AjBuildConfig global)
          Install global values into local config unless values conflict: Collections are unioned values takes local value unless default and global set this only sets one of outputDir and outputJar as needed This also configures super if javaOptions change.
 boolean isAddSerialVerUID()
           
 boolean isCheckRuntimeVersion()
           
 boolean isEmacsSymMode()
           
 boolean isGenerateCrossRefsMode()
           
 boolean isGenerateJavadocsInModelMode()
           
 boolean isGenerateModelMode()
           
 boolean isIncrementalFileMode()
           
 boolean isIncrementalMode()
           
 boolean isMakeReflectable()
           
 boolean isNoAtAspectJAnnotationProcessing()
           
 boolean isTerminateAfterCompilation()
           
 boolean isTiming()
           
 boolean isXdevPinpoint()
           
 boolean isXHasMemberEnabled()
           
 boolean isXlazyTjp()
           
 boolean isXmlConfigured()
           
 boolean isXnoInline()
           
 boolean isXNotReweavable()
           
 boolean isXserializableAspects()
           
 void setAddSerialVerUID(boolean b)
           
 void setAspectpath(java.util.List<java.io.File> aspectpath)
           
 void setBehaveInJava5Way(boolean b)
           
 void setBootclasspath(java.util.List<java.lang.String> bootclasspath)
           
 void setChanged(int changes)
          Indicates what has changed in this configuration compared to the last time it was used, allowing the state management logic to make intelligent optimizations and skip unnecessary work.
 void setCheckRuntimeVersion(boolean on)
           
 void setClasspath(java.util.List<java.lang.String> classpath)
           
 void setClasspathElementsWithModifiedContents(java.util.List<java.lang.String> cpElementsWithModifiedContents)
           
 void setCompilationResultDestinationManager(CompilationResultDestinationManager mgr)
           
 void setConfigFile(java.io.File configFile)
           
 void setEmacsSymMode(boolean emacsSymMode)
           
 void setFiles(java.util.List<java.io.File> files)
           
 void setGenerateCrossRefsMode(boolean on)
           
 void setGenerateJavadocsInModelMode(boolean generateJavadocsInModelMode)
           
 void setGenerateModelMode(boolean structureModelMode)
           
 void setIncrementalFile(java.io.File incrementalFile)
           
 void setIncrementalMode(boolean incrementalMode)
           
 void setInJars(java.util.List<java.io.File> sourceJars)
           
 void setInPath(java.util.List<java.io.File> dirsOrJars)
           
 void setLintMode(java.lang.String lintMode)
           
 void setLintSpecFile(java.io.File lintSpecFile)
           
 void setMakeReflectable(boolean b)
           
 void setModifiedFiles(java.util.List<java.io.File> projectSourceFilesChanged)
           
 void setNoAtAspectJAnnotationProcessing(boolean noProcess)
           
 void setOutputDir(java.io.File outputDir)
           
 void setOutputJar(java.io.File outputJar)
           
 void setOutxmlName(java.lang.String name)
           
 void setProceedOnError(boolean b)
           
 void setProjectEncoding(java.lang.String projectEncoding)
           
 void setShowWeavingInformation(boolean b)
           
 void setSourcePathResources(java.util.Map<java.lang.String,java.io.File> map)
           
 void setSourceRoots(java.util.List<java.io.File> sourceRootDir)
           
 void setTargetAspectjRuntimeLevel(java.lang.String level)
           
 void setTerminateAfterCompilation(boolean b)
           
 void setTiming(boolean b)
           
 void setXconfigurationInfo(java.lang.String info)
           
 void setXdevPinpointMode(boolean enabled)
           
 void setXHasMemberSupport(boolean enabled)
           
 void setXJoinpoints(java.lang.String jps)
           
 void setXlazyTjp(boolean b)
           
 void setXmlConfigured(boolean b)
           
 void setXmlFiles(java.util.List<java.io.File> xmlfiles)
           
 void setXnoInline(boolean xnoInline)
           
 void setXnotReweavable(boolean b)
           
 void setXserializableAspects(boolean xserializableAspects)
           
 boolean shouldProceed()
          used to indicate whether to proceed after parsing config
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AJLINT_IGNORE

public static final java.lang.String AJLINT_IGNORE
See Also:
Constant Field Values

AJLINT_WARN

public static final java.lang.String AJLINT_WARN
See Also:
Constant Field Values

AJLINT_ERROR

public static final java.lang.String AJLINT_ERROR
See Also:
Constant Field Values

AJLINT_DEFAULT

public static final java.lang.String AJLINT_DEFAULT
See Also:
Constant Field Values
Constructor Detail

AjBuildConfig

public AjBuildConfig()
Intialises the javaOptions Map to hold the default JDT Compiler settings. Added by AMC 01.20.2003 in reponse to bug #29768 and enh. 29769. The settings here are duplicated from those set in org.eclipse.jdt.internal.compiler.batch.Main, but I've elected to copy them rather than refactor the JDT class since this keeps integration with future JDT releases easier (?).

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFiles

public java.util.List<java.io.File> getFiles()
returned files includes

Returns:
all source files that should be compiled.

getXmlFiles

public java.util.List<java.io.File> getXmlFiles()

getBinaryFiles

public java.util.List<AjBuildConfig.BinarySourceFile> getBinaryFiles()
returned files includes all .class files found in a directory on the inpath, but does not include .class files contained within jars.


getOutputDir

public java.io.File getOutputDir()

getCompilationResultDestinationManager

public CompilationResultDestinationManager getCompilationResultDestinationManager()

setCompilationResultDestinationManager

public void setCompilationResultDestinationManager(CompilationResultDestinationManager mgr)

setFiles

public void setFiles(java.util.List<java.io.File> files)

setXmlFiles

public void setXmlFiles(java.util.List<java.io.File> xmlfiles)

setOutputDir

public void setOutputDir(java.io.File outputDir)

getOptions

public AjCompilerOptions getOptions()

getClasspath

public java.util.List<java.lang.String> getClasspath()
This does not include -bootclasspath but includes -extdirs and -classpath


setClasspath

public void setClasspath(java.util.List<java.lang.String> classpath)

getBootclasspath

public java.util.List<java.lang.String> getBootclasspath()

setBootclasspath

public void setBootclasspath(java.util.List<java.lang.String> bootclasspath)

getOutputJar

public java.io.File getOutputJar()

getOutxmlName

public java.lang.String getOutxmlName()

getInpath

public java.util.List<java.io.File> getInpath()

getInJars

public java.util.List<java.io.File> getInJars()

getSourcePathResources

public java.util.Map<java.lang.String,java.io.File> getSourcePathResources()

setOutputJar

public void setOutputJar(java.io.File outputJar)

setOutxmlName

public void setOutxmlName(java.lang.String name)

setInJars

public void setInJars(java.util.List<java.io.File> sourceJars)

setInPath

public void setInPath(java.util.List<java.io.File> dirsOrJars)

getSourceRoots

public java.util.List<java.io.File> getSourceRoots()

setSourceRoots

public void setSourceRoots(java.util.List<java.io.File> sourceRootDir)

getConfigFile

public java.io.File getConfigFile()

setConfigFile

public void setConfigFile(java.io.File configFile)

setIncrementalMode

public void setIncrementalMode(boolean incrementalMode)

isIncrementalMode

public boolean isIncrementalMode()

setIncrementalFile

public void setIncrementalFile(java.io.File incrementalFile)

isIncrementalFileMode

public boolean isIncrementalFileMode()

getFullClasspath

public java.util.List<java.lang.String> getFullClasspath()
Returns:
List (String) classpath of bootclasspath, injars, inpath, aspectpath entries, specified classpath (extdirs, and classpath), and output dir or jar

getLintSpecFile

public java.io.File getLintSpecFile()

setLintSpecFile

public void setLintSpecFile(java.io.File lintSpecFile)

getAspectpath

public java.util.List<java.io.File> getAspectpath()

setAspectpath

public void setAspectpath(java.util.List<java.io.File> aspectpath)

hasSources

public boolean hasSources()
Returns:
true if any config file, sourceroots, sourcefiles, injars or inpath

installGlobals

public void installGlobals(AjBuildConfig global)
Install global values into local config unless values conflict:

setSourcePathResources

public void setSourcePathResources(java.util.Map<java.lang.String,java.io.File> map)

shouldProceed

public boolean shouldProceed()
used to indicate whether to proceed after parsing config


doNotProceed

public void doNotProceed()

getLintMode

public java.lang.String getLintMode()

setLintMode

public void setLintMode(java.lang.String lintMode)

isTerminateAfterCompilation

public boolean isTerminateAfterCompilation()

setTerminateAfterCompilation

public void setTerminateAfterCompilation(boolean b)

isXserializableAspects

public boolean isXserializableAspects()

setXserializableAspects

public void setXserializableAspects(boolean xserializableAspects)

setXJoinpoints

public void setXJoinpoints(java.lang.String jps)

getXJoinpoints

public java.lang.String getXJoinpoints()

isXnoInline

public boolean isXnoInline()

setXnoInline

public void setXnoInline(boolean xnoInline)

isXlazyTjp

public boolean isXlazyTjp()

setXlazyTjp

public void setXlazyTjp(boolean b)

setXnotReweavable

public void setXnotReweavable(boolean b)

setXconfigurationInfo

public void setXconfigurationInfo(java.lang.String info)

getXconfigurationInfo

public java.lang.String getXconfigurationInfo()

setXHasMemberSupport

public void setXHasMemberSupport(boolean enabled)

isXHasMemberEnabled

public boolean isXHasMemberEnabled()

setXdevPinpointMode

public void setXdevPinpointMode(boolean enabled)

isXdevPinpoint

public boolean isXdevPinpoint()

setAddSerialVerUID

public void setAddSerialVerUID(boolean b)

isAddSerialVerUID

public boolean isAddSerialVerUID()

setXmlConfigured

public void setXmlConfigured(boolean b)

setMakeReflectable

public void setMakeReflectable(boolean b)

isXmlConfigured

public boolean isXmlConfigured()

isMakeReflectable

public boolean isMakeReflectable()

isXNotReweavable

public boolean isXNotReweavable()

isGenerateJavadocsInModelMode

public boolean isGenerateJavadocsInModelMode()

setGenerateJavadocsInModelMode

public void setGenerateJavadocsInModelMode(boolean generateJavadocsInModelMode)

isGenerateCrossRefsMode

public boolean isGenerateCrossRefsMode()

setGenerateCrossRefsMode

public void setGenerateCrossRefsMode(boolean on)

isCheckRuntimeVersion

public boolean isCheckRuntimeVersion()

setCheckRuntimeVersion

public void setCheckRuntimeVersion(boolean on)

isEmacsSymMode

public boolean isEmacsSymMode()

setEmacsSymMode

public void setEmacsSymMode(boolean emacsSymMode)

isGenerateModelMode

public boolean isGenerateModelMode()

setGenerateModelMode

public void setGenerateModelMode(boolean structureModelMode)

isNoAtAspectJAnnotationProcessing

public boolean isNoAtAspectJAnnotationProcessing()

setNoAtAspectJAnnotationProcessing

public void setNoAtAspectJAnnotationProcessing(boolean noProcess)

setShowWeavingInformation

public void setShowWeavingInformation(boolean b)

getShowWeavingInformation

public boolean getShowWeavingInformation()

setProceedOnError

public void setProceedOnError(boolean b)

getProceedOnError

public boolean getProceedOnError()

setBehaveInJava5Way

public void setBehaveInJava5Way(boolean b)

getBehaveInJava5Way

public boolean getBehaveInJava5Way()

setTiming

public void setTiming(boolean b)

isTiming

public boolean isTiming()

setTargetAspectjRuntimeLevel

public void setTargetAspectjRuntimeLevel(java.lang.String level)

getTargetAspectjRuntimeLevel

public java.lang.String getTargetAspectjRuntimeLevel()

setChanged

public void setChanged(int changes)
Indicates what has changed in this configuration compared to the last time it was used, allowing the state management logic to make intelligent optimizations and skip unnecessary work.

Parameters:
changes - set of bitflags, see CompilerConfigurationChangeFlags for flags

getChanged

public int getChanged()
Return the bit flags indicating what has changed since the last time this config was used.

Returns:
the bitflags according too CompilerConfigurationChangeFlags

setModifiedFiles

public void setModifiedFiles(java.util.List<java.io.File> projectSourceFilesChanged)

getModifiedFiles

public java.util.List<java.io.File> getModifiedFiles()

setClasspathElementsWithModifiedContents

public void setClasspathElementsWithModifiedContents(java.util.List<java.lang.String> cpElementsWithModifiedContents)

getClasspathElementsWithModifiedContents

public java.util.List<java.lang.String> getClasspathElementsWithModifiedContents()

setProjectEncoding

public void setProjectEncoding(java.lang.String projectEncoding)