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
-
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 AbstractCompilersProvider
configure, provideArguments, provideArguments
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ArgumentsProvider
provideArguments
-
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>
-