Record Class CompilerConfiguration

java.lang.Object
java.lang.Record
org.aspectj.org.eclipse.jdt.internal.compiler.CompilerConfiguration

public record CompilerConfiguration(List<org.eclipse.core.resources.IContainer> sourcepaths, List<org.eclipse.core.resources.IContainer> moduleSourcepaths, List<URI> classpaths, List<URI> modulepaths, List<URI> annotationProcessorPaths, List<org.eclipse.core.resources.IContainer> generatedSourcePaths, Map<org.eclipse.core.resources.IContainer,org.eclipse.core.resources.IContainer> sourceOutputMapping, CompilerOptions compilerOptions) extends Record
This class encapsulates the standard compiler options that can be used to compile Java files. It provides methods to set and retrieve various compiler options, including source paths, class paths, output directories, annotation processing options, and other compiler arguments. Clients typically use this class when opting for an alternative compiler like Javac to compile Java files.
Since:
3.38
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompilerConfiguration(List<org.eclipse.core.resources.IContainer> sourcepaths, List<org.eclipse.core.resources.IContainer> moduleSourcepaths, List<URI> classpaths, List<URI> modulepaths, List<URI> annotationProcessorPaths, List<org.eclipse.core.resources.IContainer> generatedSourcePaths, Map<org.eclipse.core.resources.IContainer,org.eclipse.core.resources.IContainer> sourceOutputMapping, CompilerOptions compilerOptions)
    Creates an instance of a CompilerConfiguration record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the annotationProcessorPaths record component.
    Returns the value of the classpaths record component.
    Returns the value of the compilerOptions record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    List<org.eclipse.core.resources.IContainer>
    Returns the value of the generatedSourcePaths record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the modulepaths record component.
    List<org.eclipse.core.resources.IContainer>
    Returns the value of the moduleSourcepaths record component.
    Map<org.eclipse.core.resources.IContainer,org.eclipse.core.resources.IContainer>
    Returns the value of the sourceOutputMapping record component.
    List<org.eclipse.core.resources.IContainer>
    Returns the value of the sourcepaths record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CompilerConfiguration

      public CompilerConfiguration(List<org.eclipse.core.resources.IContainer> sourcepaths, List<org.eclipse.core.resources.IContainer> moduleSourcepaths, List<URI> classpaths, List<URI> modulepaths, List<URI> annotationProcessorPaths, List<org.eclipse.core.resources.IContainer> generatedSourcePaths, Map<org.eclipse.core.resources.IContainer,org.eclipse.core.resources.IContainer> sourceOutputMapping, CompilerOptions compilerOptions)
      Creates an instance of a CompilerConfiguration record class.
      Parameters:
      sourcepaths - the value for the sourcepaths record component
      moduleSourcepaths - the value for the moduleSourcepaths record component
      classpaths - the value for the classpaths record component
      modulepaths - the value for the modulepaths record component
      annotationProcessorPaths - the value for the annotationProcessorPaths record component
      generatedSourcePaths - the value for the generatedSourcePaths record component
      sourceOutputMapping - the value for the sourceOutputMapping record component
      compilerOptions - the value for the compilerOptions record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sourcepaths

      public List<org.eclipse.core.resources.IContainer> sourcepaths()
      Returns the value of the sourcepaths record component.
      Returns:
      the value of the sourcepaths record component
    • moduleSourcepaths

      public List<org.eclipse.core.resources.IContainer> moduleSourcepaths()
      Returns the value of the moduleSourcepaths record component.
      Returns:
      the value of the moduleSourcepaths record component
    • classpaths

      public List<URI> classpaths()
      Returns the value of the classpaths record component.
      Returns:
      the value of the classpaths record component
    • modulepaths

      public List<URI> modulepaths()
      Returns the value of the modulepaths record component.
      Returns:
      the value of the modulepaths record component
    • annotationProcessorPaths

      public List<URI> annotationProcessorPaths()
      Returns the value of the annotationProcessorPaths record component.
      Returns:
      the value of the annotationProcessorPaths record component
    • generatedSourcePaths

      public List<org.eclipse.core.resources.IContainer> generatedSourcePaths()
      Returns the value of the generatedSourcePaths record component.
      Returns:
      the value of the generatedSourcePaths record component
    • sourceOutputMapping

      public Map<org.eclipse.core.resources.IContainer,org.eclipse.core.resources.IContainer> sourceOutputMapping()
      Returns the value of the sourceOutputMapping record component.
      Returns:
      the value of the sourceOutputMapping record component
    • compilerOptions

      public CompilerOptions compilerOptions()
      Returns the value of the compilerOptions record component.
      Returns:
      the value of the compilerOptions record component