Index
All Classes and Interfaces|All Packages
A
- allAnnotationsInType() - Method in interface io.avaje.spi.internal.UType
-
Return the annotation mirrors directly on the type and in within generic type use.
- annotations() - Method in interface io.avaje.spi.internal.UType
-
Return the annotation mirrors directly on the type.
- APContext - Class in io.avaje.spi.internal
-
Utiliy Class that stores the
ProcessingEnvironment
and provides various helper methods - APContext.Ctx - Class in io.avaje.spi.internal
- asTypeElement(TypeMirror) - Static method in class io.avaje.spi.internal.APContext
-
Returns the element corresponding to a type.The type may be a DeclaredType or TypeVariable.Returns null if the type is not one with a corresponding element.
B
- boxedPrimitive(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Returns boxed type if type string is primitive, otherwise return the input unchanged
C
- clear() - Static method in class io.avaje.spi.internal.APContext
-
Clears the ThreadLocal containing the
ProcessingEnvironment
. - commonParent(String, String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Return the common parent package between two classes/packages.
- componentTypes() - Method in interface io.avaje.spi.internal.UType
-
Retrieve the component types associated with this mirror.
- containsOnModulePath(String) - Method in class io.avaje.spi.internal.ModuleInfoReader
-
Check to see whether the given module is on the module path as a non-static dependency
- createSourceFile(CharSequence, Element...) - Static method in class io.avaje.spi.internal.APContext
-
Create a file writer for the given class name.
E
- elements() - Static method in class io.avaje.spi.internal.APContext
-
Get current
Elements
from theProcessingEnvironment
- elementsAnnotatedWith(RoundEnvironment, String) - Static method in class io.avaje.spi.internal.APContext
-
Returns the elements annotated with the given annotation interface.
- equals(Object) - Method in interface io.avaje.spi.internal.UType
-
Compare whether the current full() type is identical to the given UType's full() type
- exports() - Method in class io.avaje.spi.internal.ModuleInfoReader
-
The exports directives associated with this module
- Exports(ModuleElement, String, List<ModuleElement>) - Constructor for class io.avaje.spi.internal.ModuleInfoReader.Exports
- extractEnclosingFQN(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Get the enclosed type from a nested class, or return the type itself if not nested.
F
- filer() - Static method in class io.avaje.spi.internal.APContext
-
Get current
Filer
from theProcessingEnvironment
- full() - Method in interface io.avaje.spi.internal.UType
-
Return the full type as a code safe string.
- fullWithoutAnnotations() - Method in interface io.avaje.spi.internal.UType
-
Return the full type as a string, stripped of annotations.
G
- getBuildResource(String) - Static method in class io.avaje.spi.internal.APContext
- getDependency() - Method in class io.avaje.spi.internal.ModuleInfoReader.Requires
-
Returns the module that is required.
- getModuleInfoReader() - Static method in class io.avaje.spi.internal.APContext
-
Gets a
BufferedReader
for the project'smodule-info.java
source file. - getOption(String) - Static method in class io.avaje.spi.internal.APContext
-
Returns processor-specific option passed to the annotation processing tool.
- getPackage() - Method in class io.avaje.spi.internal.ModuleInfoReader.Exports
-
Returns the package being exported.
- getPackage() - Method in class io.avaje.spi.internal.ModuleInfoReader.Opens
-
Returns the package being opened.
- getProjectModuleElement() - Static method in class io.avaje.spi.internal.APContext
-
Retrieve the project's
ModuleElement
. - getSupportedSourceVersion() - Method in class io.avaje.spi.internal.ServiceProcessor
- getTargetModules() - Method in class io.avaje.spi.internal.ModuleInfoReader.Exports
-
Returns the specific modules to which the package is being exported, or
null
, if the package is exported to all modules which have readability to this module. - getTargetModules() - Method in class io.avaje.spi.internal.ModuleInfoReader.Opens
-
Returns the specific modules to which the package is being open or
null
, if the package is open all modules which have readability to this module.
H
- hasAnnotationWithName(Element, String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Check if element has an annotation with a simple name that matches the given short name
I
- implementations() - Method in class io.avaje.spi.internal.ModuleInfoReader.Provides
-
Returns the implementations of the service being provided.
- importTypes() - Method in interface io.avaje.spi.internal.UType
-
Return all the import types needed to write this mirror in source code (annotations included).
- init(APContext.Ctx, int, boolean) - Static method in class io.avaje.spi.internal.APContext
-
Initialize the ThreadLocal containing the
ProcessingEnvironment
. - init(ProcessingEnvironment) - Static method in class io.avaje.spi.internal.APContext
-
Initialize the ThreadLocal containing the Processing Enviroment. this typically should be called during the init phase of processing.
- init(ProcessingEnvironment) - Method in class io.avaje.spi.internal.ServiceProcessor
- io.avaje.spi.core - module io.avaje.spi.core
- io.avaje.spi.internal - package io.avaje.spi.internal
- isAssignable(String, String) - Static method in class io.avaje.spi.internal.APContext
-
Determine whether the first type can be assigned to the second
- isAssignable(TypeElement, String) - Static method in class io.avaje.spi.internal.APContext
-
Determine whether the first type can be assigned to the second
- isGeneric() - Method in interface io.avaje.spi.internal.UType
-
Returns whether the type mirror is generic
- isPrimitive(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Return true if type string is of a primitive type
- isStatic() - Method in class io.avaje.spi.internal.ModuleInfoReader.Requires
-
Returns whether or not this is a static dependency.
- isTestCompilation() - Static method in class io.avaje.spi.internal.APContext
-
Return true if the compiler is creating test classes.
- isTransitive() - Method in class io.avaje.spi.internal.ModuleInfoReader.Requires
-
Returns whether or not this is a transitive dependency.
- isVarArg(VariableElement, int) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Determine if a VariableElement is a varargs parameter
J
- jdkVersion() - Static method in class io.avaje.spi.internal.APContext
-
Returns the source version that any generated source and class files should conform to
K
- kind() - Method in interface io.avaje.spi.internal.UType
-
The
TypeKind
of the type mirror used to create this Utype.
L
- logError(String, Object...) - Static method in class io.avaje.spi.internal.APContext
-
Prints an error.
- logError(Element, String, Object...) - Static method in class io.avaje.spi.internal.APContext
-
Prints an error at the location of the element.
- logNote(String, Object...) - Static method in class io.avaje.spi.internal.APContext
-
Prints a note at the location of the element.
- logNote(Element, String, Object...) - Static method in class io.avaje.spi.internal.APContext
-
Prints a note.
- logWarn(String, Object...) - Static method in class io.avaje.spi.internal.APContext
-
Prints a warning.
- logWarn(Element, String, Object...) - Static method in class io.avaje.spi.internal.APContext
-
Prints an warning at the location of the element.
M
- mainType() - Method in interface io.avaje.spi.internal.UType
-
Return the main type (outermost type). e.g for mirror invalid input: '{@' java.util.List
you'll get java.util.List - messager() - Static method in class io.avaje.spi.internal.APContext
-
Get current
Messager
from theProcessingEnvironment
- moduleInfoReader() - Static method in class io.avaje.spi.internal.APContext
-
Retrieve the root module-info reader if it can be read
- ModuleInfoReader - Class in io.avaje.spi.internal
-
Helper Class to work with an application's root module-info.
- ModuleInfoReader() - Constructor for class io.avaje.spi.internal.ModuleInfoReader
-
Parse the module-info.java using the ModuleElement from the APContext and create a new instance
- ModuleInfoReader(ModuleElement, BufferedReader) - Constructor for class io.avaje.spi.internal.ModuleInfoReader
-
Parse a module-info and create a new instance
- ModuleInfoReader(ModuleElement, CharSequence) - Constructor for class io.avaje.spi.internal.ModuleInfoReader
-
Parse a module-info and create a new instance
- ModuleInfoReader.Exports - Class in io.avaje.spi.internal
-
An exported package of a module.
- ModuleInfoReader.Opens - Class in io.avaje.spi.internal
-
An opened package of a module.
- ModuleInfoReader.Provides - Class in io.avaje.spi.internal
-
An implementation of a service provided by a module.
- ModuleInfoReader.Requires - Class in io.avaje.spi.internal
-
A dependency of a module.
- ModuleInfoReader.Uses - Class in io.avaje.spi.internal
-
A reference to a service used by a module.
O
- opens() - Method in class io.avaje.spi.internal.ModuleInfoReader
-
The opens directives associated with this module
- Opens(ModuleElement, String, List<ModuleElement>) - Constructor for class io.avaje.spi.internal.ModuleInfoReader.Opens
P
- packageName() - Method in class io.avaje.spi.internal.ModuleInfoReader.Exports
-
Returns the name of the package being exported.
- packageName() - Method in class io.avaje.spi.internal.ModuleInfoReader.Opens
-
Returns the name of the package being opened.
- packageOf(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Get Package from a given fqn string
- param0() - Method in interface io.avaje.spi.internal.UType
-
Return the first generic parameter.
- param1() - Method in interface io.avaje.spi.internal.UType
-
Return the second componentType.
- parse(TypeMirror) - Static method in interface io.avaje.spi.internal.UType
-
Create a UType from the given TypeMirror.
- previewEnabled() - Static method in class io.avaje.spi.internal.APContext
-
Returns whether
--preview-enabled
has been added to compiler flags. - process(Set<? extends TypeElement>, RoundEnvironment) - Method in class io.avaje.spi.internal.ServiceProcessor
- processingEnv() - Static method in class io.avaje.spi.internal.APContext
-
Get current
ProcessingEnvironment
- ProcessorUtils - Class in io.avaje.spi.internal
- provides() - Method in class io.avaje.spi.internal.ModuleInfoReader
-
The provides directives associated with this module
- Provides(String, List<String>) - Constructor for class io.avaje.spi.internal.ModuleInfoReader.Provides
R
- requires() - Method in class io.avaje.spi.internal.ModuleInfoReader
-
The requires directives associated with this module
- Requires(ModuleElement, boolean, boolean) - Constructor for class io.avaje.spi.internal.ModuleInfoReader.Requires
S
- sanitizeImports(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Sanitize an import string to remove invalid characters
- service() - Method in class io.avaje.spi.internal.ModuleInfoReader.Provides
-
Returns the service being provided.
- service() - Method in class io.avaje.spi.internal.ModuleInfoReader.Uses
-
Returns the service that is used.
- ServiceProcessor - Class in io.avaje.spi.internal
- ServiceProcessor() - Constructor for class io.avaje.spi.internal.ServiceProcessor
- setProjectModuleElement(Set<? extends TypeElement>, RoundEnvironment) - Static method in class io.avaje.spi.internal.APContext
-
Discover the
ModuleElement
for the project being processed and set in the context. - shortType() - Method in interface io.avaje.spi.internal.UType
-
Return the full (but unqualified) type as a code safe string.
- shortType(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Get short type from a given fqn string.
- shortWithoutAnnotations() - Method in interface io.avaje.spi.internal.UType
-
Return the short type as a string, stripped of annotations.
T
- trimAnnotations(String) - Static method in class io.avaje.spi.internal.ProcessorUtils
-
Remove all annotations and their values from a string.
- typeElement(String) - Static method in class io.avaje.spi.internal.APContext
-
Returns a type element given its canonical name.
- types() - Static method in class io.avaje.spi.internal.APContext
-
Get current
Types
from theProcessingEnvironment
U
- uses() - Method in class io.avaje.spi.internal.ModuleInfoReader
-
The uses directives associated with this module
- Uses(String) - Constructor for class io.avaje.spi.internal.ModuleInfoReader.Uses
- UType - Interface in io.avaje.spi.internal
-
Utility type to help process
TypeMirror
s
V
- validateServices(String, Collection<String>) - Method in class io.avaje.spi.internal.ModuleInfoReader
-
Checks whether the module-info has the defined provides directive and all their implementations Will register an error message compilation
All Classes and Interfaces|All Packages