Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(LabelSource) - Method in class com.karuslabs.elementary.junit.ToolsExtension
- afterEach(ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
-
Tears down the compiler.
- afterEach(ExtensionContext) - Method in class com.karuslabs.elementary.junit.JavacExtension
- all - Variable in class com.karuslabs.elementary.Diagnostics
-
All diagnostic messages.
- all() - Method in class com.karuslabs.elementary.junit.Labels
-
Returns all elements annotated with
@Labelin this annotation processing round. - at(long) - Method in class com.karuslabs.elementary.Finder
-
Retains only diagnostic messages that appear at the given column.
C
- classes() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Generation
-
The location of generated classes.
- classOutput - Variable in class com.karuslabs.elementary.Compiler
-
The location of the generated classes.
- classpath(ClassLoader) - Method in class com.karuslabs.elementary.Compiler
-
Adds the classpath of the given
ClassLoaderas the compilation classpath. - classpath(Collection<File>) - Method in class com.karuslabs.elementary.Compiler
-
Adds the given classpath as the compilation classpath.
- Classpath - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Denotes a class on the current classpath to be included for compilation.
- Classpaths - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
A container type for
Classpath. - codes() - Method in class com.karuslabs.elementary.Finder
-
Return the codes of the diagnostic messages.
- columns() - Method in class com.karuslabs.elementary.Finder
-
Returns the column numbers of the diagnostic messages.
- com.karuslabs.elementary - package com.karuslabs.elementary
-
Contains low-level classes that facilitate compilation of Java source files and subsequent mapping of the results.
- com.karuslabs.elementary.file - package com.karuslabs.elementary.file
-
Contains facilities to handle file management during compilation and classes that represent Java source files.
- com.karuslabs.elementary.junit - package com.karuslabs.elementary.junit
-
Contains JUnit extensions for testing annotation processors and compilation.
- com.karuslabs.elementary.junit.annotations - package com.karuslabs.elementary.junit.annotations
-
Contains annotations used in
com.karuslabs.elementary.junit. - CompilationException - Exception in com.karuslabs.elementary
-
Indicates that compilation has failed.
- CompilationException(String) - Constructor for exception com.karuslabs.elementary.CompilationException
-
Creates a
CompilationExceptionwith the given error message. - CompilationException(String, Throwable) - Constructor for exception com.karuslabs.elementary.CompilationException
-
Creates a
CompilationExceptionwith the given error message and underlying exception. - CompilationException(List<String>) - Constructor for exception com.karuslabs.elementary.CompilationException
-
Creates a
CompilationExceptionwith the given error messages. - compile(List<JavaFileObject>) - Method in class com.karuslabs.elementary.Compiler
-
Compiles the given Java source files.
- compile(JavaFileObject...) - Method in class com.karuslabs.elementary.Compiler
-
Compiles the given Java source files.
- Compiler - Class in com.karuslabs.elementary
-
Represents a Java compiler.
- contains(String) - Method in class com.karuslabs.elementary.Finder
-
Retain only diagnostic messages that contain the given substring.
- count() - Method in class com.karuslabs.elementary.Finder
-
Returns the current count of diagnostic messages.
- createTestInstance(TestInstanceFactoryContext, ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
-
Starts the compiler and creates an instance of the test class if it has only 1 constructor with supported parameters.
- currentClasspath() - Method in class com.karuslabs.elementary.Compiler
-
Adds the current classpath as the compilation classpath.
D
- deduce(URI) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Deduces the file extension of the given URI.
- DEFAULT - Static variable in annotation interface com.karuslabs.elementary.junit.annotations.Introspect
-
A value to signify that the name of the enclosing top level class is to be used.
- DEFAULT_OUTPUT - Static variable in annotation interface com.karuslabs.elementary.junit.annotations.Generation
-
A placeholder that signifies that the default output location should be used.
- diagnostics - Variable in class com.karuslabs.elementary.Results
-
The diagnostic messages.
- diagnostics() - Method in class com.karuslabs.elementary.Finder
-
Returns the full descriptions of the diagnostic messages.
- Diagnostics - Class in com.karuslabs.elementary
-
The diagnostic messages of a compilation's results.
- Diagnostics() - Constructor for class com.karuslabs.elementary.Diagnostics
- DUMMY - Static variable in class com.karuslabs.elementary.file.FileObjects
-
A dummy Java source file.
E
- elements() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns an
Elements. - errors - Variable in class com.karuslabs.elementary.Diagnostics
-
All errors.
- errors - Variable in class com.karuslabs.elementary.Results
-
The errors.
- errors() - Method in class com.karuslabs.elementary.Finder
-
Retains only errors.
F
- FileObjects - Class in com.karuslabs.elementary.file
-
Utilities for creating
JavaFileObjects. - FileObjects() - Constructor for class com.karuslabs.elementary.file.FileObjects
- filer() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
Filer. - find() - Method in class com.karuslabs.elementary.Results
-
Returns a
Finderfor thisResults. - Finder - Class in com.karuslabs.elementary
-
Filter and maps the results of a compilation.
- Finder(Results) - Constructor for class com.karuslabs.elementary.Finder
-
Creates a
Finderfor the given results.
G
- generatedSources - Variable in class com.karuslabs.elementary.Results
-
The generated source files.
- Generation - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Represents the configuration for generating classes and sources.
- get(String) - Method in class com.karuslabs.elementary.junit.Labels
-
Returns an element annotated with the given label in the annotation processing round.
- group() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Label
-
The group to which this label belongs.
- group(String) - Method in class com.karuslabs.elementary.junit.Labels
-
Returns elements annotated with
@Labeland the given get. - groups() - Element in annotation interface com.karuslabs.elementary.junit.annotations.LabelSource
- groups() - Method in class com.karuslabs.elementary.junit.Labels
-
Returns all elements annotated with
@Labelin this annotation processing round.
I
- in(JavaFileObject) - Method in class com.karuslabs.elementary.Finder
-
Retains only diagnostic messages in the given Java source file.
- Inline - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Denotes an inline Java source file to be included for compilation.
- Inlines - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
A container type for
Inline. - interceptTestMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
-
Intercepts a test method invocation to determine if it is annotated with
Classpath,@Resourceor@Inline. - Introspect - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Denotes that the containing file of the annotated element is to be included for compilation.
- iterator() - Method in class com.karuslabs.elementary.Finder
-
Returns an iterator over
Diagnostic<? extends JavaFileObject>s. - iterator() - Method in class com.karuslabs.elementary.junit.Labels
-
Returns an iterator over the
Elements annotated with@Label.
J
- javac(File, File) - Static method in class com.karuslabs.elementary.Compiler
-
Creates a Java compiler.
- JavacExtension - Class in com.karuslabs.elementary.junit
-
A JUnit extension that compiles Java source files specified by
@Classpath,@Inline,@Introspectand@Resourceannotations on the test class and method. - JavacExtension() - Constructor for class com.karuslabs.elementary.junit.JavacExtension
K
- kind(Collection<Diagnostic.Kind>) - Method in class com.karuslabs.elementary.Finder
-
Removes all diagnostic messages which kind does not match the given kinds.
- kind(Diagnostic.Kind...) - Method in class com.karuslabs.elementary.Finder
-
Removes all diagnostic messages which kind does not match the given kinds.
L
- Label - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
An annotation to mark and simplify retrieval of elements in tests extended with
ToolsExtension. - labels() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
Labels. - Labels - Class in com.karuslabs.elementary.junit
-
Utilities to find and manipulate elements annotated with
@Labelin an annotation processing round when used in conjunction withToolsExtension. - Labels(RoundEnvironment) - Constructor for class com.karuslabs.elementary.junit.Labels
-
Creates a
Labelsfor the given annotation processing round. - LabelSource - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Denotes the groups of labeled
Elements to be used as parameters in a parameterized test. - lines() - Method in class com.karuslabs.elementary.Finder
-
Returns the line numbers of the diagnostic messages.
- list() - Method in class com.karuslabs.elementary.Finder
-
Returns the diagnostic messages.
- logger() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
Logger.
M
- map() - Method in class com.karuslabs.elementary.Finder
-
Returns a map of diagnostic messages and associated
Kinds. - matches(String) - Method in class com.karuslabs.elementary.Finder
-
Retains only diagnostic messages that exactly match the given message.
- matches(Pattern) - Method in class com.karuslabs.elementary.Finder
-
Retain only diagnostic messages that match the given pattern.
- messager() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
Messager. - messages() - Method in class com.karuslabs.elementary.Finder
-
Returns only the message portions of the diagnostic messages.
- module(Module) - Method in class com.karuslabs.elementary.Compiler
-
Adds the module and its transitive dependencies to the compilation classpath.
N
- name() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Inline
-
The fully qualified class name, i.e.
- notes - Variable in class com.karuslabs.elementary.Diagnostics
-
All notes.
- notes - Variable in class com.karuslabs.elementary.Results
-
The notes.
- notes() - Method in class com.karuslabs.elementary.Finder
-
Retains only notes.
O
- ofClass(String) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates a
JavaFileObjectfrom a source file that the given fully qualified name represents, i.e. - ofLines(String, Iterable<String>) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates a
JavaFileObjectusing the given fully qualified class name and source code. - ofLines(String, String) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates a
JavaFileObjectusing the given fully qualified class name and source code. - ofLines(String, String...) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates a
JavaFileObjectusing the given fully qualified class name and source code. - ofResource(String) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates a
JavaFileObjectfrom the given resource. - ofResource(URL) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates a
JavaFileObjectfrom the given resource. - on(long) - Method in class com.karuslabs.elementary.Finder
-
Retains only diagnostic messages that appear on the given line.
- one() - Method in class com.karuslabs.elementary.Finder
-
Returns the diagnostic message if this
Findercontains exactly one diagnostic message. - options(String...) - Method in class com.karuslabs.elementary.Compiler
-
Adds the given compiler options to this
Compiler. - options(Collection<String>) - Method in class com.karuslabs.elementary.Compiler
-
Adds the given compiler options to this
Compiler. - Options - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Represents the javac options to use during compilation.
P
- positions() - Method in class com.karuslabs.elementary.Finder
-
Return the positions of the diagnostic messages from the start of a source file.
- processors(Collection<Processor>) - Method in class com.karuslabs.elementary.Compiler
-
Adds the given annotation processors to this
Compiler. - processors(Processor...) - Method in class com.karuslabs.elementary.Compiler
-
Adds the given annotation processors to this
Compiler. - Processors - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Denotes the annotation processors to be applied during compilation.
- provideArguments(ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
R
- report(Diagnostic<? extends JavaFileObject>) - Method in class com.karuslabs.elementary.Diagnostics
-
Adds the given diagnostic to this
Diagnostics. - resolveParameter(ParameterContext, ExtensionContext) - Method in class com.karuslabs.elementary.junit.JavacExtension
- resolveParameter(ParameterContext, ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
- Resource - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
Denotes a resource on the current classpath to be included for compilation.
- Resources - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
A container type for
Resource. - Results - Class in com.karuslabs.elementary
-
The results of a compilation.
- Results(List<JavaFileObject>, List<JavaFileObject>, Diagnostics, boolean) - Constructor for class com.karuslabs.elementary.Results
-
Creates a
Resultswith the given arguments. - retain() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Generation
-
Whether to retain the generated classes and sources after each run.
- round() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
RoundEnvironment.
S
- scan(Class<?>) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates
JavaFileObjects using the@Classpath,@Inline,@Introspectand@Resourceannotations on the given class. - scan(AnnotatedElement) - Static method in class com.karuslabs.elementary.file.FileObjects
-
Creates
JavaFileObjects using the@Classpath,@Inlineand@Resourceannotations on the given element. - single() - Method in class com.karuslabs.elementary.junit.Labels
-
Returns an element if this annotation processing round contains exactly a single element annotated with
@Label. - size() - Method in class com.karuslabs.elementary.junit.Labels
-
Returns the number of elements annotated with
@Labelin this annotation processing round. - source() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Inline
-
The Java source code.
- sourceOutput - Variable in class com.karuslabs.elementary.Compiler
-
The location of the generated sources.
- sources - Variable in class com.karuslabs.elementary.Results
-
The source files which were compiled.
- sources() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Generation
-
The location of generated sources.
- success - Variable in class com.karuslabs.elementary.Results
-
Whether compilation was successful.
- supportsParameter(ParameterContext, ExtensionContext) - Method in class com.karuslabs.elementary.junit.JavacExtension
-
Tests if a parameter is a
Results. - supportsParameter(ParameterContext, ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
-
Tests if a parameter is supported.
T
- Tools - Class in com.karuslabs.elementary.junit
-
Utilities from which an annotation processing environment can be accessed when used in conjunction with
ToolsExtension. - Tools() - Constructor for class com.karuslabs.elementary.junit.Tools
- ToolsExtension - Class in com.karuslabs.elementary.junit
-
A JUnit extension that provides an annotation processing environment in which to execute tests.
- ToolsExtension() - Constructor for class com.karuslabs.elementary.junit.ToolsExtension
- trees() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
Trees. - typeMirrors() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
TypeMirrors. - types() - Static method in class com.karuslabs.elementary.junit.Tools
-
Returns a
Types.
U
- Usage - Annotation Interface in com.karuslabs.elementary.junit.annotations
-
A meta-annotation that documents usage of the other annotations by JUnit extensions in
com.karuslabs.elementary.junit.
V
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Classpath
-
The fully qualified class name, i.e.
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Classpaths
-
The contained
@Classpathannotations. - value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Inlines
-
The contained
@Inlineannotations. - value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Introspect
-
The name of the top level class after which the file is named.
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Label
-
A unique value for this label.
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Options
-
The options.
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Processors
-
The types of the annotation processors to be applied.
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Resource
-
The path to the resource.
- value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Resources
-
The contained
@Resourceannotations. - value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Usage
-
The JUnit extensions that uses the annotated target.
W
- warnings - Variable in class com.karuslabs.elementary.Diagnostics
-
Mandatory and non-mandatory warnings.
- warnings - Variable in class com.karuslabs.elementary.Results
-
The warnings.
- warnings() - Method in class com.karuslabs.elementary.Finder
-
Retains only warnings.
- where(Predicate<Diagnostic<? extends JavaFileObject>>) - Method in class com.karuslabs.elementary.Finder
-
Retains only diagnostic messages that satisfy the given predicate.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form