A B C D E G H I M N O P R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(AnnotationValueVisitor<R, P>, P) - Method in class com.google.auto.common.SimpleTypeAnnotationValue
- AnnotationMirrors - Class in com.google.auto.common
-
A utility class for working with
AnnotationMirrorinstances. - annotations() - Method in interface com.google.auto.common.BasicAnnotationProcessor.ProcessingStep
-
Deprecated.The set of annotation types processed by this step.
- annotations() - Method in interface com.google.auto.common.BasicAnnotationProcessor.Step
-
The set of fully-qualified annotation type names processed by this step.
- AnnotationValues - Class in com.google.auto.common
-
A utility class for working with
AnnotationValueinstances. - asArray(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
ArrayTypeif theTypeMirrorrepresents an array or throws anIllegalArgumentException. - asDeclared(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
DeclaredTypeif theTypeMirrorrepresents a declared type such as a class, interface, union/compound, or enum or throws anIllegalArgumentException. - asElement(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
An alternate implementation of
Types.asElement(javax.lang.model.type.TypeMirror)that does not require aTypesinstance with the notable difference that it will throwIllegalArgumentExceptioninstead of returning null if theTypeMirrorcan not be converted to anElement. - asError(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
ExecutableTypeif theTypeMirrorrepresents an executable type such as may result from missing code, or bad compiles or throws anIllegalArgumentException. - asExecutable(Element) - Static method in class com.google.auto.common.MoreElements
-
Returns the given
Elementinstance asExecutableElement. - asExecutable(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
ExecutableTypeif theTypeMirrorrepresents an executable type such as a method, constructor, or initializer or throws anIllegalArgumentException. - asIntersection(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns an
IntersectionTypeif theTypeMirrorrepresents an intersection-type or throws anIllegalArgumentException. - asMemberOf(Types, DeclaredType, VariableElement) - Static method in class com.google.auto.common.MoreTypes
-
Resolves a
VariableElementparameter to a method or constructor based on the given container, or a member of a class. - asNoType(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
NoTypeif theTypeMirrorrepresents an non-type such as void, or package, etc. - asNullType(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
NullTypeif theTypeMirrorrepresents the null type or throws anIllegalArgumentException. - asPackage(Element) - Static method in class com.google.auto.common.MoreElements
-
Returns the given
Elementinstance asPackageElement. - asPrimitiveType(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
PrimitiveTypeif theTypeMirrorrepresents a primitive type or throws anIllegalArgumentException. - asStep(BasicAnnotationProcessor.ProcessingStep) - Static method in class com.google.auto.common.BasicAnnotationProcessor
-
Wraps the passed
BasicAnnotationProcessor.ProcessingStepin aBasicAnnotationProcessor.Step. - asType(Element) - Static method in class com.google.auto.common.MoreElements
-
Returns the given
Elementinstance asTypeElement. - asTypeElement(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
- asTypeElements(Iterable<? extends TypeMirror>) - Static method in class com.google.auto.common.MoreTypes
- asTypeParameter(Element) - Static method in class com.google.auto.common.MoreElements
-
Returns the given
Elementinstance asTypeParameterElement. - asTypeVariable(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
TypeVariableif theTypeMirrorrepresents a type variable or throws anIllegalArgumentException. - asVariable(Element) - Static method in class com.google.auto.common.MoreElements
-
Returns the given
Elementinstance asVariableElement. - asWildcard(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns a
WildcardTypeif theTypeMirrorrepresents a wildcard type or throws anIllegalArgumentException.
B
- BasicAnnotationProcessor - Class in com.google.auto.common
-
An abstract
Processorimplementation that defers processing ofElements to later rounds if they cannot be processed. - BasicAnnotationProcessor() - Constructor for class com.google.auto.common.BasicAnnotationProcessor
- BasicAnnotationProcessor.ProcessingStep - Interface in com.google.auto.common
-
Deprecated.Implement
BasicAnnotationProcessor.Stepinstead. SeeBasicAnnotationProcessor.steps(). - BasicAnnotationProcessor.Step - Interface in com.google.auto.common
-
The unit of processing logic that runs under the guarantee that all elements are complete and well-formed.
C
- com.google.auto.common - package com.google.auto.common
D
- DEFAULT - com.google.auto.common.Visibility
E
- effectiveVisibilityOfElement(Element) - Static method in enum com.google.auto.common.Visibility
-
Returns effective visibility of the given element meaning that it takes into account the visibility of its enclosing elements.
- equals(Object) - Method in class com.google.auto.common.SimpleAnnotationMirror
- equivalence() - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns an
EquivalenceforAnnotationMirroras some implementations delegate equality tests toObject.equals(java.lang.Object)whereas the documentation explicitly states that instance/reference equality is not the proper test. - equivalence() - Static method in class com.google.auto.common.AnnotationValues
-
Returns an
EquivalenceforAnnotationValueas annotation values may containAnnotationMirrorinstances some of whose implementations delegate equality tests toObject.equals(java.lang.Object)whereas the documentation explicitly states that instance/reference equality is not the proper test. - equivalence() - Static method in class com.google.auto.common.MoreTypes
-
Returns an
Equivalencethat can be used to compare types.
G
- generatedAnnotation(Elements) - Static method in class com.google.auto.common.GeneratedAnnotations
-
Deprecated.
- generatedAnnotation(Elements, SourceVersion) - Static method in class com.google.auto.common.GeneratedAnnotations
-
Returns the element corresponding to the
@Generatedannotation present at the targetSourceVersion. - GeneratedAnnotations - Class in com.google.auto.common
-
Utility methods for writing
@Generatedannotations. - generatedAnnotationSpec(Elements, Class<?>) - Static method in class com.google.auto.common.GeneratedAnnotationSpecs
- generatedAnnotationSpec(Elements, Class<?>, String) - Static method in class com.google.auto.common.GeneratedAnnotationSpecs
- generatedAnnotationSpec(Elements, SourceVersion, Class<?>) - Static method in class com.google.auto.common.GeneratedAnnotationSpecs
-
Returns
@Generated("processorClass")for the targetSourceVersion. - generatedAnnotationSpec(Elements, SourceVersion, Class<?>, String) - Static method in class com.google.auto.common.GeneratedAnnotationSpecs
-
Returns
@Generated(value = "processorClass", comments = "comments")for the targetSourceVersion. - GeneratedAnnotationSpecs - Class in com.google.auto.common
-
Utility methods for writing
@Generatedannotations using JavaPoet. - getAllMethods(TypeElement, Types, Elements) - Static method in class com.google.auto.common.MoreElements
-
Returns the set of all methods from
type, including methods that it inherits from its ancestors. - getAnnotatedAnnotations(Element, Class<? extends Annotation>) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns all annotations that are present on the given
Elementwhich are themselves annotated withannotationClass. - getAnnotatedAnnotations(Element, String) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns all annotations that are present on the given
Elementwhich are themselves annotated with an annotation whose type's canonical name isannotationName. - getAnnotatedAnnotations(Element, TypeElement) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns all annotations that are present on the given
Elementwhich are themselves annotated withannotation. - getAnnotationElementAndValue(AnnotationMirror, String) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns a
ExecutableElementand its associatedAnnotationValueif such an element was either declared in the usage represented by the providedAnnotationMirror, or if such an element was defined with a default. - getAnnotationMirror(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as an AnnotationMirror.
- getAnnotationMirror(Element, Class<? extends Annotation>) - Static method in class com.google.auto.common.MoreElements
-
Returns an
AnnotationMirrorfor the annotation of typeannotationClassonelement, orOptional.absent()if no such annotation exists. - getAnnotationMirror(Element, String) - Static method in class com.google.auto.common.MoreElements
-
Returns an
AnnotationMirrorfor the annotation whose type's canonical name is onelement, orOptional.absent()if no such annotation exists. - getAnnotationMirror(Element, TypeElement) - Static method in class com.google.auto.common.MoreElements
-
Returns an
AnnotationMirrorfor the annotation of typeannotationonelement, orOptional.absent()if no such annotation exists. - getAnnotationMirrors(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of annotations.
- getAnnotationType() - Method in class com.google.auto.common.SimpleAnnotationMirror
- getAnnotationValue(AnnotationMirror, String) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns an
AnnotationValuefor the named element if such an element was either declared in the usage represented by the providedAnnotationMirror, or if such an element was defined with a default. - getAnnotationValues(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of
AnnotationValues. - getAnnotationValuesWithDefaults(AnnotationMirror) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns the
AnnotationMirror's map ofAnnotationValueindexed byExecutableElement, supplying default values from the annotation if the annotation property has not been set. - getBoolean(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a boolean.
- getBooleans(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of booleans.
- getByte(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a byte.
- getBytes(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of bytes.
- getChar(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a char.
- getChars(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of characters.
- getDouble(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a double.
- getDoubles(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of doubles.
- getElementValues() - Method in class com.google.auto.common.SimpleAnnotationMirror
- getEnum(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a VariableElement.
- getEnums(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of enums.
- getFloat(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a float.
- getFloats(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of floats.
- getInt(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as an int.
- getInts(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of integers.
- getLocalAndInheritedMethods(TypeElement, Elements) - Static method in class com.google.auto.common.MoreElements
-
Deprecated.The method
MoreElements.getLocalAndInheritedMethods(TypeElement, Types, Elements)has better consistency between Java compilers. - getLocalAndInheritedMethods(TypeElement, Types, Elements) - Static method in class com.google.auto.common.MoreElements
-
Returns the set of all non-private, non-static methods from
type, including methods that it inherits from its ancestors. - getLong(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a long.
- getLongs(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of longs.
- getPackage(Element) - Static method in class com.google.auto.common.MoreElements
-
An alternate implementation of
Elements.getPackageOf(javax.lang.model.element.Element)that does not require anElementsinstance. - getShort(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a short.
- getShorts(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of shorts.
- getString(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a string.
- getStrings(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of strings.
- getSupportedAnnotationTypes() - Method in class com.google.auto.common.BasicAnnotationProcessor
-
Returns the set of supported annotation types as collected from registered processing steps.
- getTypeMirror(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a class.
- getTypeMirrors(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns the value as a list of classes.
- getValue() - Method in class com.google.auto.common.SimpleTypeAnnotationValue
H
- hashCode() - Method in class com.google.auto.common.SimpleAnnotationMirror
- hasModifiers(Set<Modifier>) - Static method in class com.google.auto.common.MoreElements
-
Returns a
Predicatethat can be used to filter elements byModifier. - hasModifiers(Modifier...) - Static method in class com.google.auto.common.MoreElements
-
Returns a
Predicatethat can be used to filter elements byModifier.
I
- init(ProcessingEnvironment) - Method in class com.google.auto.common.BasicAnnotationProcessor
- initSteps() - Method in class com.google.auto.common.BasicAnnotationProcessor
-
Deprecated.Implement
BasicAnnotationProcessor.steps()instead. - isAnnotationPresent(Element, Class<? extends Annotation>) - Static method in class com.google.auto.common.MoreElements
-
Returns
trueiff the given element has anAnnotationMirrorwhose annotation type has the same canonical name as that ofannotationClass. - isAnnotationPresent(Element, String) - Static method in class com.google.auto.common.MoreElements
-
Returns
trueiff the given element has anAnnotationMirrorwhose annotation type hasannotationNameas its canonical name. - isAnnotationPresent(Element, TypeElement) - Static method in class com.google.auto.common.MoreElements
-
Returns
trueiff the given element has anAnnotationMirrorwhose annotation type has the same fully qualified name as that ofannotation. - isConversionFromObjectUnchecked(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns true if casting
Objectto the given type will elicit an unchecked warning from the compiler. - isType(Element) - Static method in class com.google.auto.common.MoreElements
-
Returns true if the given
Elementinstance is aTypeElement. - isType(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns true if the raw type underlying the given
TypeMirrorrepresents a type that can be referenced by aClass. - isTypeOf(Class<?>, TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns true if the raw type underlying the given
TypeMirrorrepresents the same raw type as the givenClassand throws an IllegalArgumentException if theTypeMirrordoes not represent a type that can be referenced by aClass
M
- MoreElements - Class in com.google.auto.common
-
Static utility methods pertaining to
Elementinstances. - MoreStreams - Class in com.google.auto.common
-
A utility class that provides Android compatible alternatives to Guava's streaming APIs.
- MoreTypes - Class in com.google.auto.common
-
Utilities related to
TypeMirrorinstances.
N
- nonObjectSuperclass(Types, Elements, DeclaredType) - Static method in class com.google.auto.common.MoreTypes
-
Returns the superclass of
type, with any type parameters bound bytype, orOptional.absent()iftypeis an interface orObjector its superclass isObject.
O
- of(TypeElement) - Static method in class com.google.auto.common.SimpleAnnotationMirror
-
An object representing an annotation instance.
- of(TypeElement, Map<String, ? extends AnnotationValue>) - Static method in class com.google.auto.common.SimpleAnnotationMirror
-
An object representing an annotation instance.
- of(TypeMirror) - Static method in class com.google.auto.common.SimpleTypeAnnotationValue
-
An object representing an annotation value instance.
- ofElement(Element) - Static method in enum com.google.auto.common.Visibility
-
Returns the visibility of the given
Element. - overrides(ExecutableElement, ExecutableElement, TypeElement, Types) - Static method in class com.google.auto.common.MoreElements
-
Tests whether one method, as a member of a given type, overrides another method.
P
- postProcess() - Method in class com.google.auto.common.BasicAnnotationProcessor
-
Deprecated.
- postRound(RoundEnvironment) - Method in class com.google.auto.common.BasicAnnotationProcessor
-
An optional hook for logic to be executed at the end of each round.
- PRIVATE - com.google.auto.common.Visibility
- process(ImmutableSetMultimap<String, Element>) - Method in interface com.google.auto.common.BasicAnnotationProcessor.Step
-
The implementation of processing logic for the step.
- process(SetMultimap<Class<? extends Annotation>, Element>) - Method in interface com.google.auto.common.BasicAnnotationProcessor.ProcessingStep
-
Deprecated.The implementation of processing logic for the step.
- process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.google.auto.common.BasicAnnotationProcessor
- PROTECTED - com.google.auto.common.Visibility
- PUBLIC - com.google.auto.common.Visibility
R
- referencedTypes(TypeMirror) - Static method in class com.google.auto.common.MoreTypes
-
Returns the set of types that are referenced by the given
TypeMirror.
S
- SimpleAnnotationMirror - Class in com.google.auto.common
-
A simple implementation of the
AnnotationMirrorinterface. - SimpleTypeAnnotationValue - Class in com.google.auto.common
-
A simple implementation of the
AnnotationValueinterface for a class literal, e.g. - steps() - Method in class com.google.auto.common.BasicAnnotationProcessor
-
Creates processing steps for this processor.
- SuperficialValidation - Class in com.google.auto.common
-
A utility class that traverses
Elementinstances and ensures that all type information is present and resolvable.
T
- toImmutableBiMap(Function<? super T, K>, Function<? super T, V>) - Static method in class com.google.auto.common.MoreStreams
-
Returns a collector for an
ImmutableBiMap. - toImmutableList() - Static method in class com.google.auto.common.MoreStreams
-
Returns a collector for an
ImmutableList. - toImmutableMap(Function<? super T, K>, Function<? super T, V>) - Static method in class com.google.auto.common.MoreStreams
-
Returns a collector for an
ImmutableMap. - toImmutableSet() - Static method in class com.google.auto.common.MoreStreams
-
Returns a collector for an
ImmutableSet. - toString() - Method in class com.google.auto.common.SimpleAnnotationMirror
- toString() - Method in class com.google.auto.common.SimpleTypeAnnotationValue
- toString(AnnotationMirror) - Static method in class com.google.auto.common.AnnotationMirrors
-
Returns a string representation of the given annotation mirror, suitable for inclusion in a Java source file to reproduce the annotation in source form.
- toString(AnnotationValue) - Static method in class com.google.auto.common.AnnotationValues
-
Returns a string representation of the given annotation value, suitable for inclusion in a Java source file as part of an annotation.
V
- validateElement(Element) - Static method in class com.google.auto.common.SuperficialValidation
-
Returns true if all types referenced by the given element are defined.
- validateElements(Iterable<? extends Element>) - Static method in class com.google.auto.common.SuperficialValidation
-
Returns true if all of the given elements return true from
SuperficialValidation.validateElement(Element). - validateType(TypeMirror) - Static method in class com.google.auto.common.SuperficialValidation
-
Returns true if the given type is fully defined.
- valueOf(String) - Static method in enum com.google.auto.common.Visibility
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.google.auto.common.Visibility
-
Returns an array containing the constants of this enum type, in the order they are declared.
- Visibility - Enum in com.google.auto.common
-
Represents the visibility of a given
Element:public,protected,privateor default/package-private.
All Classes All Packages