Index

A C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accept(LabelSource) - Method in class com.karuslabs.elementary.junit.ToolsExtension
 
afterAll(ExtensionContext) - Method in class com.karuslabs.elementary.junit.ToolsExtension
Tears down the compiler.
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 @Label in this annotation processing round.
asPath(FileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
at(long) - Method in class com.karuslabs.elementary.Finder
Retains only diagnostic messages that appear at the given column.

C

classpath(ClassLoader) - Method in class com.karuslabs.elementary.Compiler
Adds the classpath of the given ClassLoader as 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.
close() - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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 CompilationException with the given error message.
CompilationException(String, Throwable) - Constructor for exception com.karuslabs.elementary.CompilationException
Creates a CompilationException with the given error message and underlying exception.
CompilationException(List<String>) - Constructor for exception com.karuslabs.elementary.CompilationException
Creates a CompilationException with the given error messages.
compile(Iterable<? extends 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.
contains(JavaFileManager.Location, FileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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.
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 Finder for this Results.
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 Finder for the given results.
flush() - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
ForwardingFileManager - Class in com.karuslabs.elementary.file
A file manager that forwards all calls to an underlying StandardJavaFileManager.
ForwardingFileManager(StandardJavaFileManager) - Constructor for class com.karuslabs.elementary.file.ForwardingFileManager
Creates a FowardingFileManager with the given underlying manager.

G

generated - Variable in class com.karuslabs.elementary.Results
The generated source files.
generatedSources() - Method in class com.karuslabs.elementary.file.MemoryFileManager
Returns the generated Java source files.
get(String) - Method in class com.karuslabs.elementary.junit.Labels
Returns an element annotated with the given label in the annotation processing round.
getClassLoader(JavaFileManager.Location) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getFileForInput(JavaFileManager.Location, String, String) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getFileForInput(JavaFileManager.Location, String, String) - Method in class com.karuslabs.elementary.file.MemoryFileManager
 
getFileForOutput(JavaFileManager.Location, String, String, FileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getFileForOutput(JavaFileManager.Location, String, String, FileObject) - Method in class com.karuslabs.elementary.file.MemoryFileManager
 
getJavaFileForInput(JavaFileManager.Location, String, JavaFileObject.Kind) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getJavaFileForInput(JavaFileManager.Location, String, JavaFileObject.Kind) - Method in class com.karuslabs.elementary.file.MemoryFileManager
 
getJavaFileForOutput(JavaFileManager.Location, String, JavaFileObject.Kind, FileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getJavaFileForOutput(JavaFileManager.Location, String, JavaFileObject.Kind, FileObject) - Method in class com.karuslabs.elementary.file.MemoryFileManager
 
getJavaFileObjects(File...) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getJavaFileObjects(String...) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getJavaFileObjectsFromFiles(Iterable<? extends File>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getJavaFileObjectsFromStrings(Iterable<String>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getLocation(JavaFileManager.Location) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getLocationForModule(JavaFileManager.Location, String) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getLocationForModule(JavaFileManager.Location, JavaFileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
getServiceLoader(JavaFileManager.Location, Class<S>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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 @Label and 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 @Label in this annotation processing round.

H

handleOption(String, Iterator<String>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
hasLocation(JavaFileManager.Location) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 

I

in(JavaFileObject) - Method in class com.karuslabs.elementary.Finder
Retains only diagnostic messages in the given Java source file.
inferBinaryName(JavaFileManager.Location, JavaFileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
inferModuleName(JavaFileManager.Location) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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, @Resource or @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.
isSameFile(FileObject, FileObject) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
isSameFile(FileObject, FileObject) - Method in class com.karuslabs.elementary.file.MemoryFileManager
Determines if the two FileObjects are equal by comparing their URIs.
isSupportedOption(String) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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() - 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, @Introspect and @Resource annotations 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 @Label in an annotation processing round when used in conjunction with ToolsExtension.
Labels(RoundEnvironment) - Constructor for class com.karuslabs.elementary.junit.Labels
Creates a Labels for 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.
list(JavaFileManager.Location, String, Set<JavaFileObject.Kind>, boolean) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
listLocationsForModules(JavaFileManager.Location) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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.
MemoryFileManager - Class in com.karuslabs.elementary.file
A file manager that stores all output in memory.
MemoryFileManager(StandardJavaFileManager) - Constructor for class com.karuslabs.elementary.file.MemoryFileManager
Creates a MemoryFileManager with the given underlying manager.
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 JavaFileObject from 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 JavaFileObject using the given fully qualified class name and source code.
ofLines(String, String) - Static method in class com.karuslabs.elementary.file.FileObjects
Creates a JavaFileObject using the given fully qualified class name and source code.
ofLines(String, String...) - Static method in class com.karuslabs.elementary.file.FileObjects
Creates a JavaFileObject using the given fully qualified class name and source code.
ofResource(String) - Static method in class com.karuslabs.elementary.file.FileObjects
Creates a JavaFileObject from the given resource.
ofResource(URL) - Static method in class com.karuslabs.elementary.file.FileObjects
Creates a JavaFileObject from 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 Finder contains 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.
outputFiles() - Method in class com.karuslabs.elementary.file.MemoryFileManager
Returns the output files.

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 Results with the given arguments.
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, @Introspect and @Resource annotations on the given class.
scan(AnnotatedElement) - Static method in class com.karuslabs.elementary.file.FileObjects
Creates JavaFileObjects using the @Classpath, @Inline and @Resource annotations on the given element.
setLocation(JavaFileManager.Location, Iterable<? extends File>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
setLocationForModule(JavaFileManager.Location, String, Collection<? extends Path>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
setLocationFromPaths(JavaFileManager.Location, Collection<? extends Path>) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
setPathFactory(StandardJavaFileManager.PathFactory) - Method in class com.karuslabs.elementary.file.ForwardingFileManager
 
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 @Label in this annotation processing round.
source() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Inline
The Java source code.
sources - Variable in class com.karuslabs.elementary.Results
The source files which were compiled.
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 @Classpath annotations.
value() - Element in annotation interface com.karuslabs.elementary.junit.annotations.Inlines
The contained @Inline annotations.
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 @Resource annotations.
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.
A C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form