Schnittstelle ICompilerConfiguration

Alle Superschnittstellen:
CompilerConfigurationChangeFlags

public interface ICompilerConfiguration extends CompilerConfigurationChangeFlags
Interface that contains all the configuration required for the compiler to be able to perform a build
  • Methodendetails

    • getJavaOptionsMap

      Map<String,String> getJavaOptionsMap()
      Returns the table of the current custom java options.

      For a complete description of the configurable options, see JavaOptions.getDefaultJavaOptions() or IJavaProject.getOptions(boolean)

      Gibt zurück:
      table of current settings of all options (key type: String; value type: String)
      Siehe auch:
    • getNonStandardOptions

      String getNonStandardOptions()
      The non-standard options, typically prefaced with -X when used with a command line compiler. The default is no non-standard options. Options should be separated by a space, for example "-showWeaveInfo -XnoInline"
    • getProjectSourceFiles

      List<String> getProjectSourceFiles()
      Gibt zurück:
      a list of those files to include in the build
    • getProjectXmlConfigFiles

      List<String> getProjectXmlConfigFiles()
      Gibt zurück:
      a list of those files that should be used to configure a build
    • getProjectSourceFilesChanged

      List<File> getProjectSourceFilesChanged()
      Return a subset of those files we'd get on getProjectSourceFiles() - the subset that have changed since the last build. If someone else has already worked out what needs rebuilding, we don't need to do it again by checking all of the projectSourceFiles(). Returning an empty list means nothing has changed, returning null means you have no idea what changed and the compiler should work it out.
      Gibt zurück:
      a subset of those files that would be returned on getProjectSourceFiles() that have actually *changed*
    • getClasspath

      String getClasspath()
    • getModulepath

      String getModulepath()
    • getModuleSourcepath

      String getModuleSourcepath()
    • getOutputLocationManager

      IOutputLocationManager getOutputLocationManager()
      Gibt zurück:
      the IOutputLocationManager associated with this compiler configuration
    • getInpath

      Set<File> getInpath()
      Gibt zurück:
      the set of input path elements for this compilation. Set members should be of the type java.io.File. An empty set or null is acceptable for this option. From -inpath
    • getOutJar

      String getOutJar()
      Gibt zurück:
      the output jar file for the compilation results. Return null to leave classfiles unjar'd in output directory From -outjar
    • getAspectPath

      Set<File> getAspectPath()
      Gibt zurück:
      the set of aspect jar files to be used for the compilation. Returning null or an empty set disables this option. Set members should be of type java.io.File. From -aspectpath
    • getSourcePathResources

      Map<String,File> getSourcePathResources()
      Get the set of non-Java resources for this compilation. Set members should be of type java.io.File. An empty set or null is acceptable for this option.
      Gibt zurück:
      map from unique resource name to absolute path to source resource (String to File)
    • getConfigurationChanges

      int getConfigurationChanges()
      Returns a set of bit flags indicating what has changed in the configuration since it was previously read. This allows the compiler to avoid repeating computation for values that are the same as before.
      Gibt zurück:
      set of bit flags, see the constants in @link CompilerConfigurationChangeFlags. If unsure return EVERYTHING
    • configurationRead

      void configurationRead()
      Called by AspectJ once it has processed the configuration object and is ready to do a build. The configuration object may or may not be interested in this event. It probably will be if it is correctly tracking changes and answering getConfigurationChanges() with something other than EVERYTHING.
    • getClasspathElementsWithModifiedContents

      List<String> getClasspathElementsWithModifiedContents()
      Return a List (Strings) of the directory elements on the classpath that are likely to contain modified .class files since the previous build and must be checked. This would be used in the situation where a project has a dependency on another project and the dependency is captured by inclusion of one project on the classpath for the other. When the first project is built, we need to check the classpath element on the second projects classpath that represents the bin folder of the first project. By explicitly returning a list here we can avoid checking EVERYTHING.
      Gibt zurück:
      a list of modified elements that should be checked (can be empty) or null if unknown (and in which case every classpath element will be checked)
    • getProjectEncoding

      String getProjectEncoding()
      Return the encoding to use for this project. Return null if the platform default should be used. Example return value "UTF-8"
    • getProcessor

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

      String getProcessorPath()
      Gibt zurück:
      the processor path where the specified processor(s) can be found