Class JavacCompilersProvider
java.lang.Object
io.github.ascopes.jct.junit.AbstractCompilersProvider
io.github.ascopes.jct.junit.JavacCompilersProvider
- All Implemented Interfaces:
Consumer<JavacCompilerTest>
,ArgumentsProvider
,AnnotationConsumer<JavacCompilerTest>
public final class JavacCompilersProvider
extends AbstractCompilersProvider
implements AnnotationConsumer<JavacCompilerTest>
Argument provider for the
JavacCompilerTest
annotation.- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(JavacCompilerTest annotation) protected JctCompiler
Initialise a new compiler.protected int
Get the maximum supported compiler version.protected int
Get the minimum supported compiler version.Methods inherited from class io.github.ascopes.jct.junit.AbstractCompilersProvider
configure, provideArguments
-
Constructor Details
-
JavacCompilersProvider
Initialise the provider.This is only visible for testing purposes, users should have no need to initialise this class directly.
-
-
Method Details
-
initializeNewCompiler
Description copied from class:AbstractCompilersProvider
Initialise a new compiler.- Specified by:
initializeNewCompiler
in classAbstractCompilersProvider
- Returns:
- the compiler object.
-
minSupportedVersion
Description copied from class:AbstractCompilersProvider
Get the minimum supported compiler version.- Specified by:
minSupportedVersion
in classAbstractCompilersProvider
- Returns:
- the minimum supported compiler version.
-
maxSupportedVersion
Description copied from class:AbstractCompilersProvider
Get the maximum supported compiler version.- Specified by:
maxSupportedVersion
in classAbstractCompilersProvider
- Returns:
- the minimum supported compiler version.
-
accept
- Specified by:
accept
in interfaceConsumer<JavacCompilerTest>
-