Index

A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages

A

ancestor(TypeMirrors) - Static method in class com.karuslabs.utilitary.type.Walker
Returns a Walker that determines if a given TypeMirror is the ancestor of the visited TypeMirror.
and(Collection<? extends T>, BiConsumer<? super T, StringBuilder>) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with commas and "and".
and(T[], BiConsumer<? super T, StringBuilder>) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with commas and "and".
annotation(AnnotationMirror) - Static method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
Creates a string representation of the given annotation.
annotation(AnnotationMirror, int, int) - Static method in class com.karuslabs.utilitary.snippet.Line
Creates a Line for the given annotation.
annotation(Element, DeclaredType) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Returns the first annotation on the given asTypeElement which matches the given type.
AnnotationProcessor - Class in com.karuslabs.utilitary
A skeletal implementation of an annotation processor that provides facilities to access the annotation processing environment.
AnnotationProcessor() - Constructor for class com.karuslabs.utilitary.AnnotationProcessor
 
annotations - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The annotations.
annotations - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The annotations.
annotations - Variable in class com.karuslabs.utilitary.snippet.VariableLine
The annotations.
annotations - Variable in class com.karuslabs.utilitary.snippet.VariableSnippet
The annotations.
annotations(List<? extends AnnotationMirror>, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates an Part with the given annotations.
annotations(Element, DeclaredType) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Returns all annotations on the given asTypeElement that match the given type.
AnnotationsSnippet - Class in com.karuslabs.utilitary.snippet
A code snippet that represents an Element's annotations.
AnnotationValuePrinter - Class in com.karuslabs.utilitary.type
An AnnotationValueVisitor that creates a string representation of the visited annotation.
AnnotationValuePrinter() - Constructor for class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
append(Object) - Method in class com.karuslabs.utilitary.Source
Appends the given value.
arguments(Object...) - Static method in class com.karuslabs.utilitary.Source
Returns a string representation of the given arguments enclosed in parentheses.
arguments(Collection<?>) - Static method in class com.karuslabs.utilitary.Source
Returns a string representation of the given arguments enclosed in parentheses.
asElement(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
asMemberOf(DeclaredType, Element) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
assign(String, String) - Method in class com.karuslabs.utilitary.Source
Assigns the given value to the variable name of locally inferred type (var).
assign(String, String, String) - Method in class com.karuslabs.utilitary.Source
Assigns the value to the variable name of the given type.
asTypeElement(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Returns a TypeElement that represents the given type.

B

box(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Returns the boxed type of a given primitive type, or the given type if it is not a primitive type.
boxedClass(PrimitiveType) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 

C

capture(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
cast(String, String, String) - Method in class com.karuslabs.utilitary.Source
Casts and assigns a value to a variable of locally inferred type (var).
charAt(int) - Method in class com.karuslabs.utilitary.snippet.Line
 
charAt(int) - Method in class com.karuslabs.utilitary.snippet.Snippet
 
charAt(int) - Method in class com.karuslabs.utilitary.Source
 
clear() - Method in class com.karuslabs.utilitary.ElementProcessor
Tears down the this annotation processor after each round of processing.
clear() - Method in class com.karuslabs.utilitary.Logger
Resets whether an error has been logged.
column - Variable in class com.karuslabs.utilitary.snippet.Line
The column annotation this line.
com.karuslabs.utilitary - package com.karuslabs.utilitary
Utilities that simplify the creation of annotation processors.
com.karuslabs.utilitary.snippet - package com.karuslabs.utilitary.snippet
Contains classes that produce source code representations of Elements.
com.karuslabs.utilitary.type - package com.karuslabs.utilitary.type
Utilities for working with TypeMirrors.
compareTo(Line) - Method in class com.karuslabs.utilitary.snippet.Line
 
conjunction(Collection<? extends T>, BiConsumer<? super T, StringBuilder>, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with commands and the given conjunction.
conjunction(T[], BiConsumer<? super T, StringBuilder>, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with commands and the given conjunction.
contains(TypeMirror, TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 

D

defaultAction(Object, StringBuilder) - Method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
defaultAction(Element, Void) - Method in class com.karuslabs.utilitary.type.Find
 
defaultAction(TypeMirror, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
defaultAction(TypeMirror, T) - Method in class com.karuslabs.utilitary.type.Walker
 
diagnose(String, Line, Line, String) - Static method in class com.karuslabs.utilitary.Texts
Creates a formatted diagnostic message that underlines issues in a message.
diagnose(String, Line, Map<Line, String>) - Static method in class com.karuslabs.utilitary.Texts
Creates a formatted diagnostic message that underlines issues in a message.
diagnose(String, Snippet, Line, String) - Static method in class com.karuslabs.utilitary.Texts
Creates a formatted diagnostic message that underlines issues in a message.
diagnose(String, Snippet, Map<Line, String>) - Static method in class com.karuslabs.utilitary.Texts
Creates a formatted diagnostic message that underlines issues in a message.
directSupertypes(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 

E

ElementProcessor - Class in com.karuslabs.utilitary
A skeletal implementation of an annotation processor that finds and processes all elements annotated with the supported annotations.
ElementProcessor() - Constructor for class com.karuslabs.utilitary.ElementProcessor
 
elements - Variable in class com.karuslabs.utilitary.AnnotationProcessor
The Elements in the current annotation processing environment.
empty(int, int) - Static method in class com.karuslabs.utilitary.snippet.Line
Creates an empty Line.
equals(Object) - Method in class com.karuslabs.utilitary.snippet.Line
 
equals(Object) - Method in class com.karuslabs.utilitary.snippet.Snippet
 
erasure(Class<?>) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Returns the erasure of a type.
erasure(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
error() - Method in class com.karuslabs.utilitary.Logger
Returns whether an error has been logged.
error(Element, Object) - Method in class com.karuslabs.utilitary.Logger
Emits an error at the given location with the given error message.
error(Element, AnnotationMirror, Object) - Method in class com.karuslabs.utilitary.Logger
Emits an error at the given annotation with the given error message.
exceptions - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The thrown exceptions.
exceptions(List<? extends TypeMirror>, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates a Part with the given thrown exceptions.
EXECUTABLE - Static variable in class com.karuslabs.utilitary.type.Find
A Find that finds the enclosing ExecutableElement of an element.
extend(TypeMirror, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates a Part with the given supertype of a TypeElement.

F

Find<T extends Element> - Class in com.karuslabs.utilitary.type
An ElementVisitor that recursively traverses enclosing elements until it finds the target element.
Find() - Constructor for class com.karuslabs.utilitary.type.Find
 
first - Variable in class com.karuslabs.utilitary.snippet.Snippet
The index of the first line.

G

getArrayType(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
getDeclaredType(TypeElement, TypeMirror...) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
getDeclaredType(DeclaredType, TypeElement, TypeMirror...) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
getNoType(TypeKind) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
getNullType() - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
getPrimitiveType(TypeKind) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
getWildcardType(TypeMirror, TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 

H

hashCode() - Method in class com.karuslabs.utilitary.snippet.Line
 
hashCode() - Method in class com.karuslabs.utilitary.snippet.Snippet
 

I

implement(ElementKind, List<? extends TypeMirror>, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates a Part with the given implemented interfaces of a TypeElement.
include(String) - Method in class com.karuslabs.utilitary.Source
Imports the given class, nested class member or package.
indent() - Method in class com.karuslabs.utilitary.Source
Increases the current indentation by four spaces.
indentation(int) - Method in class com.karuslabs.utilitary.Source
Sets the current indentation.
init(ProcessingEnvironment) - Method in class com.karuslabs.utilitary.AnnotationProcessor
Initializes this annotation processor and its fields.
interfaces - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The implemented interfaces.
is(TypeMirror, Class<?>) - Static method in class com.karuslabs.utilitary.type.TypeMirrors
Tests if the given TypeMirror and Class both represent the same type
isAssignable(TypeMirror, TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
isSameType(TypeMirror, TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
isSubsignature(ExecutableType, ExecutableType) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
isSubtype(TypeMirror, TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 

J

join(StringBuilder, Collection<? extends T>, BiConsumer<? super T, StringBuilder>, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with the given delimiter.
join(StringBuilder, T[], BiConsumer<? super T, StringBuilder>, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with the given delimiter.
join(String, String, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the left and right with the given delimiter if neither are blank.
join(Collection<? extends T>, BiConsumer<? super T, StringBuilder>, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with the given delimiter.
join(T[], BiConsumer<? super T, StringBuilder>, String) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with the given delimiter.

K

kind - Variable in class com.karuslabs.utilitary.snippet.TypeLine
The ElementKind of a TypeElement.
kind(Class<?>) - Static method in class com.karuslabs.utilitary.type.TypeMirrors
Returns the TypeKind of the given type.

L

last - Variable in class com.karuslabs.utilitary.snippet.Snippet
The index of the last line.
length() - Method in class com.karuslabs.utilitary.snippet.Line
 
length() - Method in class com.karuslabs.utilitary.snippet.Snippet
 
length() - Method in class com.karuslabs.utilitary.Source
 
line() - Method in class com.karuslabs.utilitary.Source
Appends a new line using the system's line separator.
line(Object) - Method in class com.karuslabs.utilitary.Source
Appends the given value on a new line.
line(Object...) - Method in class com.karuslabs.utilitary.Source
Appends the given values on a new line.
Line - Class in com.karuslabs.utilitary.snippet
Represents a line in a Java source file A Line reconstructs a line in the source file from an Element representation and hence may not be exactly the same as the original source code.
Line(String, int, int) - Constructor for class com.karuslabs.utilitary.snippet.Line
Creates a Line with the given value and location.
lines - Variable in class com.karuslabs.utilitary.snippet.Snippet
The lines in this snippet.
logger - Variable in class com.karuslabs.utilitary.AnnotationProcessor
The Logger in the current annotation processing environment.
Logger - Class in com.karuslabs.utilitary
A logger in an annotation processing environment that forwards all logged messages to an underlying Messager.
Logger(Messager) - Constructor for class com.karuslabs.utilitary.Logger
Creates a Logger with the given messager.

M

MethodSnippet - Class in com.karuslabs.utilitary.snippet
A code snippet that represents a ExecutableElement.
modifiers - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The modifiers.
modifiers - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The modifiers.
modifiers - Variable in class com.karuslabs.utilitary.snippet.VariableLine
The modifiers.
modifiers - Variable in class com.karuslabs.utilitary.snippet.VariableSnippet
The modifiers.
modifiers(Set<Modifier>, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates a Part with the given modifiers.
MODULE - Static variable in class com.karuslabs.utilitary.type.Find
A Find that finds the enclosing ModuleElement of an element.

N

name - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The name.
name - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The name.
name - Variable in class com.karuslabs.utilitary.snippet.VariableLine
The name.
name - Variable in class com.karuslabs.utilitary.snippet.VariableSnippet
The name.
note(Element, String) - Method in class com.karuslabs.utilitary.Logger
Emits a note at the given location with the given note.
note(Element, AnnotationMirror, Object) - Method in class com.karuslabs.utilitary.Logger
Emits a note at the given annotation with the given note.

O

of(List<? extends AnnotationMirror>, int) - Static method in class com.karuslabs.utilitary.snippet.AnnotationsSnippet
Creates a AnnotationsSnippet with the given annotations.
of(ElementKind, int, int) - Static method in class com.karuslabs.utilitary.snippet.TypeLine
Creates a TypeLine with the given ElementKind.
of(ExecutableElement, int) - Static method in class com.karuslabs.utilitary.snippet.MethodSnippet
Creates a MethodSnippet with the given ExecutableElement.
of(TypeElement, int) - Static method in class com.karuslabs.utilitary.snippet.TypeSnippet
Creates a TypeSnippet for the given TypeElement.
of(VariableElement, boolean, int, int) - Static method in class com.karuslabs.utilitary.snippet.VariableLine
Creates a VariableLine with the given VariableElement.
of(VariableElement, int) - Static method in class com.karuslabs.utilitary.snippet.VariableSnippet
Creates a VariableSnippet with the given VariableElement.
of(VariableElement, int, int) - Static method in class com.karuslabs.utilitary.snippet.VariableLine
Creates a VariableLine with the given VariableElement that includes the annotations on the given VariableElement.
or(Collection<? extends T>, BiConsumer<? super T, StringBuilder>) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with commas and "or".
or(T[], BiConsumer<? super T, StringBuilder>) - Static method in class com.karuslabs.utilitary.Texts
Joins the given elements together with commas and "or".

P

pack(String) - Method in class com.karuslabs.utilitary.Source
Declares the current package name.
PACKAGE - Static variable in class com.karuslabs.utilitary.type.Find
A Find that finds the enclosing PackageElement of an element.
parameters - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The parameters.
parameters(List<? extends VariableElement>, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates a Part with the given ExecutableElement's parameters.
Part<T,U extends Line> - Class in com.karuslabs.utilitary.snippet
Represents a part annotation an Element.
position - Variable in class com.karuslabs.utilitary.snippet.Line
The position annotation this line.
PRINTER - Static variable in class com.karuslabs.utilitary.type.AnnotationValuePrinter
An AnnotationValuePrinter.
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.karuslabs.utilitary.ElementProcessor
Finds and processes all elements in the current round that is annotated with any of the given annotations.
process(Element) - Method in class com.karuslabs.utilitary.ElementProcessor
Processes the given annotated element.

Q

qualified() - Static method in class com.karuslabs.utilitary.type.TypePrinter
Creates a TypePrinter that creates a string representation of a visited type's fully qualified name.
qualified(TypeMirror) - Static method in class com.karuslabs.utilitary.type.TypePrinter
Returns the fully qualified name of the given type.

R

rawType(DeclaredType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
Builds a string representation of the given raw type.

S

SCREAMING_CASE - Static variable in class com.karuslabs.utilitary.Texts
The format used to describe objects which string representation is in screaming case.
simple() - Static method in class com.karuslabs.utilitary.type.TypePrinter
Creates a TypePrinter that creates a string representation of a visited type's simple name.
simple(TypeMirror) - Static method in class com.karuslabs.utilitary.type.TypePrinter
Returns the simple name of the given type.
Snippet - Class in com.karuslabs.utilitary.snippet
Represents a code snippet.
Snippet(TreeMap<Integer, Line>) - Constructor for class com.karuslabs.utilitary.snippet.Snippet
Creates a Snippet with the given lines.
sort(Collection<Modifier>) - Static method in class com.karuslabs.utilitary.Texts
Sorts the given modifiers according to common Java conventions.
sort(Modifier...) - Static method in class com.karuslabs.utilitary.Texts
Sorts the given modifiers according to common Java conventions.
Source - Class in com.karuslabs.utilitary
Represents Java source code and contains methods for writing Java source code programmatically.
Source() - Constructor for class com.karuslabs.utilitary.Source
 
specialize(Class<?>, Class<?>...) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Creates a TypeMirror that represents the a specialized generic type.
specialize(Class<?>, TypeMirror...) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Creates a TypeMirror that represents the a specialized generic type.
STRING - Static variable in class com.karuslabs.utilitary.Texts
The format used to describe strings.
subSequence(int, int) - Method in class com.karuslabs.utilitary.snippet.Line
 
subSequence(int, int) - Method in class com.karuslabs.utilitary.snippet.Snippet
 
subSequence(int, int) - Method in class com.karuslabs.utilitary.Source
 
supertype - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The supertype.

T

Texts - Class in com.karuslabs.utilitary
Utilities for formatting messages.
Texts() - Constructor for class com.karuslabs.utilitary.Texts
 
toString() - Method in class com.karuslabs.utilitary.snippet.Line
 
toString() - Method in class com.karuslabs.utilitary.snippet.Snippet
 
toString() - Method in class com.karuslabs.utilitary.Source
 
type - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The return type.
type - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The type.
type - Variable in class com.karuslabs.utilitary.snippet.VariableLine
The type.
type - Variable in class com.karuslabs.utilitary.snippet.VariableSnippet
The type.
type(Class<?>) - Method in class com.karuslabs.utilitary.type.TypeMirrors
Returns a TypeMirror that represents the given Class.
TYPE - Static variable in class com.karuslabs.utilitary.type.Find
A Find that finds the enclosing TypeElement of an element.
TypeLine - Class in com.karuslabs.utilitary.snippet
Represents the declaration kind of an TypeElement.
TypeMirrors - Class in com.karuslabs.utilitary.type
A Types implementation that contains methods to create TypeMirrors from Classes.
TypeMirrors(Elements, Types) - Constructor for class com.karuslabs.utilitary.type.TypeMirrors
Creates a TypeMirrors with the given arguments.
typeParameters - Variable in class com.karuslabs.utilitary.snippet.MethodSnippet
The type parameters.
typeParameters - Variable in class com.karuslabs.utilitary.snippet.TypeSnippet
The type parameters.
typeParameters(List<? extends TypeParameterElement>, int, int) - Static method in class com.karuslabs.utilitary.snippet.Part
Creates a Part with the given type parameters.
TypePrinter - Class in com.karuslabs.utilitary.type
A TypeVisitor that creates a string representation of the visited type's name.
TypePrinter() - Constructor for class com.karuslabs.utilitary.type.TypePrinter
 
types - Variable in class com.karuslabs.utilitary.AnnotationProcessor
The TypeMirrors in the current annotation processing environment.
types - Variable in class com.karuslabs.utilitary.type.Walker
The TypeMirrors.
TypeSnippet - Class in com.karuslabs.utilitary.snippet
A code snippet that represents a TypeElement.

U

unboxedType(TypeMirror) - Method in class com.karuslabs.utilitary.type.TypeMirrors
 
unindent() - Method in class com.karuslabs.utilitary.Source
Decreases the current indentation by four spaces.

V

values - Variable in class com.karuslabs.utilitary.snippet.AnnotationsSnippet
The annotations.
values - Variable in class com.karuslabs.utilitary.snippet.Part
The values.
VariableLine - Class in com.karuslabs.utilitary.snippet
Represents a VariableElement with all annotations inlined.
VariableSnippet - Class in com.karuslabs.utilitary.snippet
A code snippet that represents a VariableElement.
visitAnnotation(AnnotationMirror, StringBuilder) - Method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
visitArray(List<? extends AnnotationValue>, StringBuilder) - Method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
visitArray(ArrayType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
visitDeclared(DeclaredType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
visitEnumConstant(VariableElement, StringBuilder) - Method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
visitIntersection(IntersectionType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
visitNoType(NoType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
visitPrimitive(PrimitiveType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
visitString(String, StringBuilder) - Method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
visitType(TypeMirror, StringBuilder) - Method in class com.karuslabs.utilitary.type.AnnotationValuePrinter
 
visitTypeVariable(TypeVariable, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 
visitWildcard(WildcardType, StringBuilder) - Method in class com.karuslabs.utilitary.type.TypePrinter
 

W

Walker<T> - Class in com.karuslabs.utilitary.type
A TypeVisistor that traverses TypeMirrors.
Walker(TypeMirrors) - Constructor for class com.karuslabs.utilitary.type.Walker
Creates a Walker with the given TypeMirrors.
warn(Element, String) - Method in class com.karuslabs.utilitary.Logger
Emits a warning at the given location with the given warning message.
warn(Element, AnnotationMirror, Object) - Method in class com.karuslabs.utilitary.Logger
Emits a warning at the given annotation with the given warning message.
A B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages