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
ConstructorsConstructorDescriptionCompilerConfiguration(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 aCompilerConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationProcessorPathsrecord component.Returns the value of theclasspathsrecord component.Returns the value of thecompilerOptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.List<org.eclipse.core.resources.IContainer> Returns the value of thegeneratedSourcePathsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themodulepathsrecord component.List<org.eclipse.core.resources.IContainer> Returns the value of themoduleSourcepathsrecord component.Map<org.eclipse.core.resources.IContainer, org.eclipse.core.resources.IContainer> Returns the value of thesourceOutputMappingrecord component.List<org.eclipse.core.resources.IContainer> Returns the value of thesourcepathsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aCompilerConfigurationrecord class.- Parameters:
sourcepaths- the value for thesourcepathsrecord componentmoduleSourcepaths- the value for themoduleSourcepathsrecord componentclasspaths- the value for theclasspathsrecord componentmodulepaths- the value for themodulepathsrecord componentannotationProcessorPaths- the value for theannotationProcessorPathsrecord componentgeneratedSourcePaths- the value for thegeneratedSourcePathsrecord componentsourceOutputMapping- the value for thesourceOutputMappingrecord componentcompilerOptions- the value for thecompilerOptionsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
sourcepaths
Returns the value of thesourcepathsrecord component.- Returns:
- the value of the
sourcepathsrecord component
-
moduleSourcepaths
Returns the value of themoduleSourcepathsrecord component.- Returns:
- the value of the
moduleSourcepathsrecord component
-
classpaths
-
modulepaths
-
annotationProcessorPaths
-
generatedSourcePaths
Returns the value of thegeneratedSourcePathsrecord component.- Returns:
- the value of the
generatedSourcePathsrecord component
-
sourceOutputMapping
public Map<org.eclipse.core.resources.IContainer,org.eclipse.core.resources.IContainer> sourceOutputMapping()Returns the value of thesourceOutputMappingrecord component.- Returns:
- the value of the
sourceOutputMappingrecord component
-
compilerOptions
Returns the value of thecompilerOptionsrecord component.- Returns:
- the value of the
compilerOptionsrecord component
-