Klasse AjBuildConfig

java.lang.Object
org.aspectj.ajdt.internal.core.builder.AjBuildConfig
Alle implementierten Schnittstellen:
CompilerConfigurationChangeFlags

public class AjBuildConfig extends 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
  • Felddetails

  • Konstruktordetails

    • AjBuildConfig

      public AjBuildConfig(BuildArgParser buildArgParser)
      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 (?).
  • Methodendetails

    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getBuildArgParser

      public BuildArgParser getBuildArgParser()
    • getFiles

      public List<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
      Gibt zurück:
      all source files that should be compiled.
    • getXmlFiles

      public List<File> getXmlFiles()
    • setProcessor

      public void setProcessor(String processor)
    • getProcessor

      public String getProcessor()
      Gibt zurück:
      the list of processor classes to execute
    • setProcessorPath

      public void setProcessorPath(String processorPath)
    • getProcessorPath

      public String getProcessorPath()
      Gibt zurück:
      the processor path which can be searched for processors (via META-INF/services)
    • getBinaryFiles

      public 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 File getOutputDir()
    • getCompilationResultDestinationManager

      public CompilationResultDestinationManager getCompilationResultDestinationManager()
    • setCompilationResultDestinationManager

      public void setCompilationResultDestinationManager(CompilationResultDestinationManager mgr)
    • setFiles

      public void setFiles(List<File> files)
    • setXmlFiles

      public void setXmlFiles(List<File> xmlfiles)
    • setOutputDir

      public void setOutputDir(File outputDir)
    • getOptions

      public AjCompilerOptions getOptions()
    • getClasspath

      public List<String> getClasspath()
      This does not include -bootclasspath but includes -extdirs and -classpath
    • setClasspath

      public void setClasspath(List<String> classpath)
    • getModulepath

      public List<String> getModulepath()
    • getModulesourcepath

      public List<String> getModulesourcepath()
    • setModulepath

      public void setModulepath(List<String> modulepath)
    • setModulesourcepath

      public void setModulesourcepath(List<String> modulesourcepath)
    • setCheckedClasspaths

      public void setCheckedClasspaths(FileSystem.Classpath[] checkedClasspaths)
    • getCheckedClasspaths

      public FileSystem.Classpath[] getCheckedClasspaths()
    • getBootclasspath

      public List<String> getBootclasspath()
    • setBootclasspath

      public void setBootclasspath(List<String> bootclasspath)
    • getOutputJar

      public File getOutputJar()
    • getOutxmlName

      public String getOutxmlName()
    • getInpath

      public List<File> getInpath()
    • getInJars

      public List<File> getInJars()
    • getSourcePathResources

      public Map<String,File> getSourcePathResources()
    • setOutputJar

      public void setOutputJar(File outputJar)
    • setOutxmlName

      public void setOutxmlName(String name)
    • setInJars

      public void setInJars(List<File> sourceJars)
    • processInPath

      public void processInPath()
    • setInPath

      public void setInPath(List<File> dirsOrJars)
    • getSourceRoots

      public List<File> getSourceRoots()
    • setSourceRoots

      public void setSourceRoots(List<File> sourceRootDir)
    • getConfigFile

      public File getConfigFile()
    • setConfigFile

      public void setConfigFile(File configFile)
    • setIncrementalMode

      public void setIncrementalMode(boolean incrementalMode)
    • isIncrementalMode

      public boolean isIncrementalMode()
    • setIncrementalFile

      public void setIncrementalFile(File incrementalFile)
    • isIncrementalFileMode

      public boolean isIncrementalFileMode()
    • getFullClasspath

      public List<String> getFullClasspath()
      Gibt zurück:
      List (String) classpath of bootclasspath, injars, inpath, aspectpath entries, specified classpath (extdirs, and classpath), and output dir or jar
    • getLintSpecFile

      public File getLintSpecFile()
    • setLintSpecFile

      public void setLintSpecFile(File lintSpecFile)
    • getAspectpath

      public List<File> getAspectpath()
    • setAspectpath

      public void setAspectpath(List<File> aspectpath)
    • addToAspectpath

      public void addToAspectpath(File file)
    • addToInjars

      public void addToInjars(File file)
    • hasSources

      public boolean hasSources()
      Gibt zurück:
      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:
      • 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.

      Parameter:
      global - the AjBuildConfig to read globals from
    • setSourcePathResources

      public void setSourcePathResources(Map<String,File> map)
    • shouldProceed

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

      public void doNotProceed()
    • getLintMode

      public String getLintMode()
    • getLintOptionsMap

      public Map<String,String> getLintOptionsMap()
    • setLintMode

      public void setLintMode(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(String jps)
    • getXJoinpoints

      public 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(String info)
    • getXconfigurationInfo

      public 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(String level)
    • getTargetAspectjRuntimeLevel

      public 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.
      Parameter:
      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.
      Gibt zurück:
      the bitflags according too CompilerConfigurationChangeFlags
    • setModifiedFiles

      public void setModifiedFiles(List<File> projectSourceFilesChanged)
    • getModifiedFiles

      public List<File> getModifiedFiles()
    • setClasspathElementsWithModifiedContents

      public void setClasspathElementsWithModifiedContents(List<String> cpElementsWithModifiedContents)
    • getClasspathElementsWithModifiedContents

      public List<String> getClasspathElementsWithModifiedContents()
    • setProjectEncoding

      public void setProjectEncoding(String projectEncoding)
    • getProjectEncoding

      public String getProjectEncoding()
    • setModuleDesc

      public void setModuleDesc(IModule moduleDesc)
    • getModuleDesc

      public IModule getModuleDesc()
    • addToInpath

      public void addToInpath(Set<File> newInpathEntries)
    • addToInpath

      public void addToInpath(File newInpathEntry)
    • addToAspectpath

      public void addToAspectpath(Set<File> newAspectpathEntries)
    • setModulepathClasspathEntries

      public void setModulepathClasspathEntries(ArrayList<FileSystem.Classpath> modulepathClasspathEntries)
    • setModulesourcepathClasspathEntries

      public void setModulesourcepathClasspathEntries(ArrayList<FileSystem.Classpath> modulesourcepathClasspathEntries)
    • removeAspectPathEntry

      public File removeAspectPathEntry(int i)
    • removeClasspathEntry

      public String removeClasspathEntry(int i)
    • removeInpathEntry

      public File removeInpathEntry(int i)
    • removeInjarsEntry

      public File removeInjarsEntry(int i)