Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addToStaticInitializer(JCTree.JCClassDecl, JCTree.JCStatement) - Method in class host.anzo.commons.processors.CommonProcessor
C
- capitalize(String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Capitalizes the first character of the input string.
- CommonProcessor - Class in host.anzo.commons.processors
-
Base processor class providing common AST manipulation utilities.
- CommonProcessor() - Constructor for class host.anzo.commons.processors.CommonProcessor
- createQualifiedName(int, String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Creates a Javac AST expression (
JCTree.JCExpression) representing a fully qualified name (e.g.,java.util.List).
E
- EXTENDED_ENUM_ANNOTATION_PATH - Static variable in class host.anzo.commons.processors.utils.Statics
- ExtendedEnumProcessor - Class in host.anzo.commons.processors
- ExtendedEnumProcessor() - Constructor for class host.anzo.commons.processors.ExtendedEnumProcessor
F
- fieldExists(JCTree.JCClassDecl, String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Checks if a field with the specified name already exists within the given class declaration.
- findFieldType(JCTree.JCClassDecl, String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Finds the field type of a given field name in a class declaration.
- findMethodReturnType(Element, String, int) - Method in class host.anzo.commons.processors.CommonProcessor
-
Finds the return type of a given method name in the given class declaration.
G
- get(Field, Object) - Static method in class host.anzo.commons.processors.utils.Permit
-
Retrieves the value of the given field from the given receiver.
- getBoxedType(JCTree.JCExpression, int) - Method in class host.anzo.commons.processors.CommonProcessor
-
Returns the boxed type expression for a given primitive type expression.
- getConstructor(Class<T>, Class<?>...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Finds a constructor with the given parameter types and makes it accessible.
- getField(Class<?>, String) - Static method in class host.anzo.commons.processors.utils.Permit
-
Retrieves a field with the given name from the specified class or its superclasses.
- getJavacProcessingEnvironment(Object) - Method in class host.anzo.commons.processors.CommonProcessor
-
Attempts to retrieve the underlying
JavacProcessingEnvironmentfrom a potentially wrapped processing environment object. - getMethod(Class<?>, String, Class<?>...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Gets a method declared in the given class or any of its superclasses.
- getSupportedSourceVersion() - Method in class host.anzo.commons.processors.CommonProcessor
-
Specifies the latest supported Java source version.
H
- handleReflectionDebug(Throwable, Throwable) - Static method in class host.anzo.commons.processors.utils.Permit
-
Handles a reflection-related exception by printing out a helpful message about the exception and, if given, an exception that occurred while setting up reflection.
- host.anzo.commons.processors - package host.anzo.commons.processors
- host.anzo.commons.processors.utils - package host.anzo.commons.processors.utils
I
- init(ProcessingEnvironment) - Method in class host.anzo.commons.processors.CommonProcessor
- invoke(Method, Object, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
- invoke(Throwable, Method, Object, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Invokes the specified method on the given receiver with the provided arguments.
- invokeSneaky(Method, Object, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
- invokeSneaky(Throwable, Method, Object, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Invokes the specified method on the given receiver with the provided arguments.
- isVerbose - Variable in class host.anzo.commons.processors.CommonProcessor
L
- log(String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Logs an informational message using the processing environment's
Messager. - logError(String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Logs an error message using the processing environment's
Messager. - logWarn(String) - Method in class host.anzo.commons.processors.CommonProcessor
-
Logs a warning message using the processing environment's
Messager.
M
- maker - Variable in class host.anzo.commons.processors.CommonProcessor
-
Factory for creating Javac AST nodes (
JCTree). - messager - Variable in class host.anzo.commons.processors.CommonProcessor
-
Interface for reporting errors, warnings, and other notices during annotation processing.
- methodExists(JCTree.JCClassDecl, String, int) - Method in class host.anzo.commons.processors.CommonProcessor
-
Checks method existence with parameter count constraint
N
- names - Variable in class host.anzo.commons.processors.CommonProcessor
-
Factory for creating Javac
Nameobjects (identifiers). - newInstance(Constructor<T>, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Invokes the specified constructor with the given arguments.
- newInstance(Throwable, Constructor<T>, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Invokes the specified constructor with the given arguments.
- newInstanceSneaky(Constructor<T>, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Invokes the specified constructor with the given arguments.
- newInstanceSneaky(Throwable, Constructor<T>, Object...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Invokes the specified constructor with the given arguments.
P
- permissiveGetField(Class<?>, String) - Static method in class host.anzo.commons.processors.utils.Permit
-
Retrieves a field with the given name from the specified class or its superclasses.
- permissiveGetMethod(Class<?>, String, Class<?>...) - Static method in class host.anzo.commons.processors.utils.Permit
-
Like
Permit.getMethod(Class, String, Class[]), but won't throw an exception if the method doesn't exist. - permissiveReadField(Class<T>, Field, Object) - Static method in class host.anzo.commons.processors.utils.Permit
-
Like, but won't throw an exception if the field doesn't exist or is not accessible.
invalid reference
#readField(Class, Field, Object) - Permit - Class in host.anzo.commons.processors.utils
- printCompilationUnitAst(JCTree.JCCompilationUnit) - Method in class host.anzo.commons.processors.CommonProcessor
-
Prints the Abstract Syntax Tree (AST) of the given compilation unit to the log.
- process(Set<? extends TypeElement>, RoundEnvironment) - Method in class host.anzo.commons.processors.ExtendedEnumProcessor
-
Process the given annotations and round environment.
R
- reportReflectionProblem(Throwable, String) - Static method in class host.anzo.commons.processors.utils.Permit
-
Reports a reflection-related problem by printing out a message to the error stream.
S
- set(Field, Object, Object) - Static method in class host.anzo.commons.processors.utils.Permit
-
Set the value of the field to
newValue. - setAccessible(T) - Static method in class host.anzo.commons.processors.utils.Permit
-
Set the accessible flag of the given accessible object to true.
- sneakyThrow(Throwable) - Static method in class host.anzo.commons.processors.utils.Permit
-
Wraps a
Throwablein aRuntimeException, but only if it isn't already aRuntimeException. - Statics - Class in host.anzo.commons.processors.utils
- Statics() - Constructor for class host.anzo.commons.processors.utils.Statics
T
- trees - Variable in class host.anzo.commons.processors.CommonProcessor
-
Utility for working with Javac ASTs (
JCTree).
All Classes and Interfaces|All Packages|Constant Field Values