Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

add(String, Object...) - Static method in class org.inferred.freebuilder.processor.util.Excerpts
 
add(String, Object...) - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
Appends formatted text to the source.
add(Excerpt) - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
Equivalent to add("%s", excerpt).
add(String, Object) - Method in interface org.inferred.freebuilder.processor.util.ValueType.FieldReceiver
 
addAccessorAnnotations(SourceBuilder) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
addAllBuildersOfMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
addAllMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
addBuilderFieldAccessors(SourceBuilder) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add the accessor methods for the property to the builder's source code.
addBuilderFieldDeclaration(SourceBuilder) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add the field declaration for the property to the builder's source code.
addClearField(SourceBuilder) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Adds a clear call for the property given a template builder to the builder's source code.
addCopiesMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.BuildableList
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedList
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedListMultimap
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedMap
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedMultiset
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedNavigableSet
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedSet
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedSetMultimap
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.FieldAccess
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.LazyName
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.TypeClass
 
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.ValueType
Implement this method to report the name and value of each field.
addFields(ValueType.FieldReceiver) - Method in class org.inferred.freebuilder.processor.util.Variable
 
addFinalFieldAssignment(SourceBuilder, Excerpt, String) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add the final assignment of the property to the value object's source code.
addGetterAnnotations(SourceBuilder) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Adds method annotations for the value type getter method.
addLazyDefinitions(SourceBuilder) - Static method in class org.inferred.freebuilder.processor.util.LazyName
Finds all lazily-declared classes and methods and adds their definitions to the source.
addLine(String, Object...) - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
Appends a formatted line of code to the source.
addMergeFromBuilder(SourceBuilder, String) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add a merge from builder for the property to the builder's source code.
addMergeFromValue(SourceBuilder, String) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add a merge from value for the property to the builder's source code.
addMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
addPartialFieldAssignment(SourceBuilder, Excerpt, String) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add the final assignment of the property to the partial value object's source code.
addReadValueFragment(SourceBuilder, Excerpt) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Adds a fragment converting the value object's field to the property's type.
addSetBuilderFromPartial(SourceBuilder, Variable) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Sets the property on a builder from within a partial value's toBuilder() method.
addSetFromResult(SourceBuilder, Excerpt, Excerpt) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Adds a set call for the property from a function result to the builder's source code.
addSource(SourceBuilder, AnnotationMirror) - Static method in class org.inferred.freebuilder.processor.util.AnnotationSource
Adds a source-code representation of annotation to .
addTo(SourceBuilder) - Method in enum org.inferred.freebuilder.processor.Datatype.Visibility
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.BuildableList
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedList
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedListMultimap
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedMap
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedMultiset
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedNavigableSet
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedSet
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.excerpt.CheckedSetMultimap
 
addTo(SourceBuilder) - Method in interface org.inferred.freebuilder.processor.util.Excerpt
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.util.FieldAccess
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.util.LazyName
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.util.Type
 
addTo(SourceBuilder) - Method in class org.inferred.freebuilder.processor.util.Variable
 
addValueFieldDeclaration(SourceBuilder, FieldAccess) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Add the field declaration for the property to the value's source code.
annotatedElementsIn(RoundEnvironment, Class<? extends Annotation>) - Static method in class org.inferred.freebuilder.processor.util.RoundEnvironments
Sanitizes the result of RoundEnvironment.getElementsAnnotatedWith(javax.lang.model.element.TypeElement), which otherwise can contain elements annotated with annotations of ERROR type.
AnnotationSource - Class in org.inferred.freebuilder.processor.util
Static methods for annotation-related source-code generation.
append(Object) - Method in interface org.inferred.freebuilder.processor.util.TemplateApplier.ParamAppender
 
append(CharSequence, int, int) - Method in interface org.inferred.freebuilder.processor.util.TemplateApplier.TextAppender
 
apply(TypeMirror) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
Returns true if input is neither null nor invalid.
arrayUtils(TypeMirror) - Method in enum org.inferred.freebuilder.processor.util.feature.GuavaLibrary
Returns a type with an asList method suitable for an array of elementType elements, if one exists.
asElement(DeclaredType) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns the TypeElement corresponding to type.

B

build() - Method in class org.inferred.freebuilder.processor.Datatype.Builder
Returns a newly-built Datatype based on the content of the Builder.
BuildableList - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a list implementation that stores a mixture of builders and value types.
BuildableType - Class in org.inferred.freebuilder.processor
Metadata about a buildable user type.
BuildableType() - Constructor for class org.inferred.freebuilder.processor.BuildableType
 
BuildableType.Builder - Class in org.inferred.freebuilder.processor
 
BuildableType.MergeBuilderMethod - Enum in org.inferred.freebuilder.processor
How to merge the values from one Builder into another.
BuildableType.PartialToBuilderMethod - Enum in org.inferred.freebuilder.processor
How to convert a partial value into a Builder.
Builder() - Constructor for class org.inferred.freebuilder.processor.BuildableType.Builder
 
Builder() - Constructor for class org.inferred.freebuilder.processor.Datatype.Builder
 
Builder() - Constructor for class org.inferred.freebuilder.processor.Property.Builder
 
builderFactory() - Method in class org.inferred.freebuilder.processor.BuildableType
 
BuilderFactory - Enum in org.inferred.freebuilder.processor
Standard ways of constructing a default Builder.
BuilderFactory.TypeInference - Enum in org.inferred.freebuilder.processor
 
BuilderMethods - Class in org.inferred.freebuilder.processor
Utility methods for method names used in builders.
builderType() - Method in class org.inferred.freebuilder.processor.BuildableType
Returns the builder type that will build instances of BuildableType.type().

C

canReturnNull() - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
canStore(Scope.Key<?>) - Method in class org.inferred.freebuilder.processor.util.Scope
 
checkArgument(String, String, Object...) - Static method in class org.inferred.freebuilder.processor.util.PreconditionExcerpts
Returns an excerpt equivalent to Guava's Preconditions.checkArgument(boolean, String, Object...).
CheckedList - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a list implementation that delegates to a provided add method to perform element validation and insertion into a random-access backing list.
CheckedListMultimap - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a multimap implementation that delegates to a provided put method to perform entry validation and insertion into a backing multimap.
CheckedMap - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a map implementation that delegates to a provided put method to perform entry validation and insertion into a backing map.
CheckedMultiset - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a multiset implementation that delegates to a provided setCount method to perform element validation and insertion into a backing multiset.
CheckedNavigableSet - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a navigable set implementation that delegates to a provided add method to perform element validation and insertion into a backing set.
CheckedSet - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a set implementation that delegates to a provided add method to perform element validation and insertion into a backing set.
CheckedSetMultimap - Class in org.inferred.freebuilder.processor.excerpt
Excerpts defining a multimap implementation that delegates to a provided put method to perform entry validation and insertion into a backing multimap.
CheckedSetMultimap() - Constructor for class org.inferred.freebuilder.processor.excerpt.CheckedSetMultimap
 
checkState(String, String, Object...) - Static method in class org.inferred.freebuilder.processor.util.PreconditionExcerpts
Returns an excerpt equivalent to Guava's Preconditions.checkState(boolean, String, Object...).
clearMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
compareTo(QualifiedName) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
computeIfAbsent(Scope.Key<V>, Supplier<V>) - Method in class org.inferred.freebuilder.processor.util.Scope
If key is not already associated with a value, computes its value using supplier and enters it into the scope.
constructor() - Method in class org.inferred.freebuilder.processor.util.Type
Returns a source excerpt suitable for constructing an instance of this type, including "new" keyword but excluding brackets.
consumer(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
 
contains(Scope.Key<?>) - Method in class org.inferred.freebuilder.processor.util.Scope
 
create(DeclaredType, DeclaredType, Elements, Types) - Static method in class org.inferred.freebuilder.processor.BuildableType
 

D

Datatype - Class in org.inferred.freebuilder.processor
Metadata about a user's datatype.
Datatype() - Constructor for class org.inferred.freebuilder.processor.Datatype
 
datatype - Variable in class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
Datatype.Builder - Class in org.inferred.freebuilder.processor
Builder for Datatype.
Datatype.StandardMethod - Enum in org.inferred.freebuilder.processor
Standard Java methods that may be underridden.
Datatype.UnderrideLevel - Enum in org.inferred.freebuilder.processor
How compulsory the underride is.
Datatype.Visibility - Enum in org.inferred.freebuilder.processor
 
declaration() - Method in class org.inferred.freebuilder.processor.util.TypeClass
Returns a source excerpt suitable for declaring this type element.
declarationParameters() - Method in class org.inferred.freebuilder.processor.util.TypeClass
Returns a source excerpt of the type parameters of this type element, including bounds and angle brackets.
determineNamingConvention(TypeElement, Iterable<ExecutableElement>, Messager, Types) - Static method in class org.inferred.freebuilder.processor.naming.NamingConventions
Determine whether the user has followed bean-like naming convention or not.
diamondOperator() - Method in class org.inferred.freebuilder.processor.util.Type
Returns a source excerpt equivalent to the diamond operator for this type.

E

EMPTY - Static variable in class org.inferred.freebuilder.processor.util.Excerpts
 
enclosingType() - Method in class org.inferred.freebuilder.processor.util.QualifiedName
Returns the QualifiedName of the type enclosing this one.
EnvironmentFeatureSet - Class in org.inferred.freebuilder.processor.util.feature
EnvironmentFeatureSet(ProcessingEnvironment) - Constructor for class org.inferred.freebuilder.processor.util.feature.EnvironmentFeatureSet
Constructs a feature set using the given processing environment.
equals(Object) - Method in class org.inferred.freebuilder.processor.Processor
 
equals(Object) - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
equals(Object, Object, TypeKind) - Static method in class org.inferred.freebuilder.processor.util.ObjectsExcerpts
Returns an Excerpt equivalent to Objects.equals(a, b).
equals(Object) - Method in class org.inferred.freebuilder.processor.util.ValueType
 
equals(Object) - Method in class org.inferred.freebuilder.processor.util.Variable
 
escapeJava(CharSequence) - Static method in class org.inferred.freebuilder.processor.util.Quotes
Escapes each character in a string that has an escape sequence.
Excerpt - Interface in org.inferred.freebuilder.processor.util
An object representing a source code excerpt, e.g.
Excerpts - Class in org.inferred.freebuilder.processor.util
 

F

Feature<T extends Feature<T>> - Interface in org.inferred.freebuilder.processor.util.feature
A feature encapsulates the availability of a type or source level feature that can be used in the source written to a SourceBuilder, such as Java language-level features, or Guava types and methods.
feature(FeatureType<T>) - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
Returns the instance of featureType appropriate for the source being written.
FeatureSet - Interface in org.inferred.freebuilder.processor.util.feature
A set of Feature instances, indexed by FeatureType.
FeatureType<F extends Feature<F>> - Class in org.inferred.freebuilder.processor.util.feature
Algorithm to select the correct instance of a given feature type for a processing environment, and the default to use in tests when an explicit value has not been registered for that feature.
FeatureType() - Constructor for class org.inferred.freebuilder.processor.util.feature.FeatureType
 
FieldAccess - Class in org.inferred.freebuilder.processor.util
 
FieldAccess(String) - Constructor for class org.inferred.freebuilder.processor.util.FieldAccess
 
FilerUtils - Class in org.inferred.freebuilder.processor.util
Static utility methods for working with Filer.
findAnnotationMirror(Element, Class<? extends Annotation>) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns an AnnotationMirror for the annotation of type annotationClass on element, or Optional.empty() if no such annotation exists.
findAnnotationMirror(Element, QualifiedName) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns an AnnotationMirror for the annotation of type annotationClass on element, or Optional.empty() if no such annotation exists.
findAnnotationMirror(Element, String) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns an AnnotationMirror for the annotation of type annotationClassName on element, or Optional.empty() if no such annotation exists.
findProperty(AnnotationMirror, String) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
 
forEnvironment(ProcessingEnvironment, FeatureSet) - Method in class org.inferred.freebuilder.processor.util.feature.FeatureType
Returns the instance of F to use in env.
forEnvironment(ProcessingEnvironment, FeatureSet) - Static method in class org.inferred.freebuilder.processor.util.SourceBuilder
Returns a SourceBuilder.
forTesting(Feature<?>...) - Static method in class org.inferred.freebuilder.processor.util.SourceBuilder
Returns a SourceBuilder using features.
forTesting(FeatureSet) - Static method in class org.inferred.freebuilder.processor.util.SourceBuilder
Returns a SourceBuilder using features.
FreeBuilder - Annotation Type in org.inferred.freebuilder
Annotates a type that has an auto-generated builder.
from(TypeElement) - Static method in enum org.inferred.freebuilder.processor.BuilderFactory
Determines the correct way of constructing a default builderType instance, if any.
from(DeclaredType) - Static method in class org.inferred.freebuilder.processor.util.Type
 
from(Class<?>) - Static method in class org.inferred.freebuilder.processor.util.Type
 
from(TypeElement) - Static method in class org.inferred.freebuilder.processor.util.TypeClass
 
FunctionalType - Class in org.inferred.freebuilder.processor.util
Metadata about a functional interface.
functionalTypeAcceptedByMethod(DeclaredType, String, FunctionalType, Elements, Types) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
Returns the functional type accepted by methodName on type, assignable to prototype, or prototype itself if no such method has been declared.

G

generated(Class<?>) - Static method in class org.inferred.freebuilder.processor.util.Excerpts
Returns an excerpt of the Generated annotation, if available, with value set to the full name of the generator class as recommended.
generated() - Method in enum org.inferred.freebuilder.processor.util.feature.JavaxPackage
Parameterized type for java.util.function.Consumer<T>, if available.
get(FeatureType<T>) - Method in class org.inferred.freebuilder.processor.util.feature.EnvironmentFeatureSet
 
get(FeatureType<T>) - Method in interface org.inferred.freebuilder.processor.util.feature.FeatureSet
Returns an instance of featureType.
get(FeatureType<T>) - Method in class org.inferred.freebuilder.processor.util.feature.StaticFeatureSet
Returns the registered instance of featureType, or the value of FeatureType.testDefault(org.inferred.freebuilder.processor.util.feature.FeatureSet) if no explicit instance was registered with this set.
get(Scope.Key<V>) - Method in class org.inferred.freebuilder.processor.util.Scope
 
getAccessorAnnotations() - Method in class org.inferred.freebuilder.processor.Property
Returns a list of annotations that should be applied to the accessor methods of this property; that is, the getter method, and a single setter method that will accept the result of the getter method as its argument.
getAllCapsName() - Method in class org.inferred.freebuilder.processor.Property
Returns the name of the property in all-caps with underscores, e.g.
getBoxedType() - Method in class org.inferred.freebuilder.processor.Property
Returns the boxed form of Property.getType(), or null if type is not primitive.
getBuilder() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the builder type that users will see.
getBuilderFactory() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the builder factory mechanism the user has exposed, if any.
getBuilderMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
getBuildersMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
getCapitalizedName() - Method in class org.inferred.freebuilder.processor.Property
Returns the capitalized name of the property, e.g.
getField() - Method in class org.inferred.freebuilder.processor.Property
Returns the field name that stores the property, e.g.
getFunctionalInterface() - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
getGeneratedBuilder() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the builder class that should be generated.
getGeneratedBuilderAnnotations() - Method in class org.inferred.freebuilder.processor.Datatype
Returns a list of annotations that should be applied to the generated builder class.
getGetterName() - Method in class org.inferred.freebuilder.processor.Property
Returns the name of the getter for the property, e.g.
getHasToBuilderMethod() - Method in class org.inferred.freebuilder.processor.Datatype
Returns whether the value type has a toBuilder method that needs to be generated.
getMethodName() - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
getName() - Method in class org.inferred.freebuilder.processor.Property
Returns the name of the property, e.g.
getNestedClasses() - Method in class org.inferred.freebuilder.processor.Datatype
Returns a list of nested classes that should be added to the generated builder class.
getOwnMethodInvocations(ExecutableElement) - Method in class org.inferred.freebuilder.processor.MethodIntrospector
Returns a set of methods which are definitely invoked on this in the given method, or the empty set if method introspection is not supported on this compiler.
getPackage() - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
getParameters() - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
getPartialType() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the partial value class that should be generated.
getPropertyEnum() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the Property enum that may be generated.
getPropertyNames(TypeElement, ExecutableElement) - Method in interface org.inferred.freebuilder.processor.naming.NamingConvention
Verifies method is an abstract getter following this naming convention.
getQualifiedName() - Method in class org.inferred.freebuilder.processor.util.Type
Returns the qualified name of the type class.
getQualifiedName() - Method in class org.inferred.freebuilder.processor.util.TypeClass
 
getReturnType() - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
getReturnType(TypeElement, ExecutableElement, Types) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Determines the return type of method, if called on an instance of type type.
getSimpleName() - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
getSimpleName() - Method in class org.inferred.freebuilder.processor.util.Type
Returns the simple name of the type class.
getSimpleNames() - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
getStandardMethodUnderrides() - Method in class org.inferred.freebuilder.processor.Datatype
 
getSupportedAnnotationTypes() - Method in class org.inferred.freebuilder.processor.Processor
 
getSupportedSourceVersion() - Method in class org.inferred.freebuilder.processor.Processor
 
getter(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
getType() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the type itself.
getType() - Method in class org.inferred.freebuilder.processor.Property
Returns the type of the property.
getTypeParameters() - Method in class org.inferred.freebuilder.processor.util.Type
 
getTypeParameters() - Method in class org.inferred.freebuilder.processor.util.TypeClass
 
getValueType() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the value class that should be generated.
getValueTypeAnnotations() - Method in class org.inferred.freebuilder.processor.Datatype
Returns a list of annotations that should be applied to the generated value class.
getValueTypeVisibility() - Method in class org.inferred.freebuilder.processor.Datatype
Returns the visibility of the generated value class.
GUAVA - Static variable in enum org.inferred.freebuilder.processor.util.feature.GuavaLibrary
Constant to pass to SourceBuilder.feature(FeatureType) to get the current status of GuavaLibrary.
GuavaLibrary - Enum in org.inferred.freebuilder.processor.util.feature
Whether the Guava library is available or not.

H

handleErrorType(ErrorType) - Method in interface org.inferred.freebuilder.processor.util.MethodFinder.ErrorTypeHandling
 
hashCode() - Method in class org.inferred.freebuilder.processor.Processor
 
hashCode() - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
hashCode() - Method in class org.inferred.freebuilder.processor.util.ValueType
 
hashCode() - Method in class org.inferred.freebuilder.processor.util.Variable
 

I

init(ProcessingEnvironment) - Method in class org.inferred.freebuilder.processor.Processor
 
initialState() - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
Returns whether the property is required, optional, or has a default.
instance(ProcessingEnvironment) - Static method in class org.inferred.freebuilder.processor.MethodIntrospector
Returns a MethodIntrospector implementation for the given environment.
intUnaryOperator(PrimitiveType) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
 
isAvailable() - Method in enum org.inferred.freebuilder.processor.util.feature.GuavaLibrary
 
isBuilderSerializable() - Method in class org.inferred.freebuilder.processor.Datatype
Returns whether the builder type should be serializable.
isEmpty() - Method in class org.inferred.freebuilder.processor.util.Scope
 
isExtensible() - Method in class org.inferred.freebuilder.processor.Datatype
Whether there is a package-visible, no-args constructor so we can subclass the Builder.
isFullyCheckedCast() - Method in class org.inferred.freebuilder.processor.Property
Returns true if a cast to this property type is guaranteed to be fully checked at runtime.
isInterfaceType() - Method in class org.inferred.freebuilder.processor.Datatype
Returns true if the type is an interface.
IsInvalidTypeVisitor - Class in org.inferred.freebuilder.processor.util
A type visitor that returns true if the type will be invalid if we write it out.
isLegalType(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
isNestedIn(QualifiedName) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
isParameterized() - Method in class org.inferred.freebuilder.processor.util.Type
Returns true if the type class is generic.
isTopLevel() - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
isUsingBeanConvention() - Method in class org.inferred.freebuilder.processor.Property
Returns true if getters start with "get"; setters should follow suit with "set".

J

javacArguments() - Method in enum org.inferred.freebuilder.processor.util.feature.SourceLevel
 
javadocLink() - Method in class org.inferred.freebuilder.processor.util.Type
Returns a source excerpt of a JavaDoc link to this type.
javadocNoArgMethodLink(String) - Method in class org.inferred.freebuilder.processor.util.Type
Returns a source excerpt of a JavaDoc link to a no-args method on this type.
JAVAX - Static variable in enum org.inferred.freebuilder.processor.util.feature.JavaxPackage
Constant to pass to SourceBuilder.feature(FeatureType) to get the current status of JavaxPackage.
JavaxPackage - Enum in org.inferred.freebuilder.processor.util.feature
Types in the javax package, if available.
join(String, Iterable<?>) - Static method in class org.inferred.freebuilder.processor.util.Excerpts
 
Jsr305 - Enum in org.inferred.freebuilder.processor.util.feature
Types from JSR 305, if available.
JSR305 - Static variable in enum org.inferred.freebuilder.processor.util.feature.Jsr305
Constant to pass to SourceBuilder.feature(FeatureType) to get the current status of Jsr305.

K

keysOfType(Class<V>) - Method in class org.inferred.freebuilder.processor.util.Scope
 

L

LazyName - Class in org.inferred.freebuilder.processor.util
 
level() - Method in class org.inferred.freebuilder.processor.util.LazyName
 
level() - Method in interface org.inferred.freebuilder.processor.util.Scope.Key
 
level() - Method in class org.inferred.freebuilder.processor.util.Variable
 

M

mapper(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
maybeAsTypeElement(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns the TypeElement corresponding to type, if there is one.
maybeBuilder(DeclaredType, Elements, Types) - Static method in class org.inferred.freebuilder.processor.BuildableType
 
maybeDeclared(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns type as a DeclaredType, if it is one.
maybeFunctionalType(TypeMirror, Elements, Types) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
 
maybeFunctionalType(DeclaredType, Elements, Types) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
 
maybeType(Element) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns element as a TypeElement, if it is one.
maybeUnbox(TypeMirror, Types) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Applies unboxing conversion to mirror, if it can be unboxed.
maybeVariable(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
 
mergeBuilder() - Method in class org.inferred.freebuilder.processor.BuildableType
 
MethodFinder - Class in org.inferred.freebuilder.processor.util
Static utility method for finding all methods, declared and inherited, on a type.
MethodFinder.ErrorTypeHandling<E extends java.lang.Exception> - Interface in org.inferred.freebuilder.processor.util
 
MethodIntrospector - Class in org.inferred.freebuilder.processor
Compiler-specific methods for introspecting methods during compilation.
MethodIntrospector() - Constructor for class org.inferred.freebuilder.processor.MethodIntrospector
 
methodsOn(TypeElement, Elements, MethodFinder.ErrorTypeHandling<E>) - Static method in class org.inferred.freebuilder.processor.util.MethodFinder
Returns all methods, declared and inherited, on type, except those specified by Object.
ModelUtils - Class in org.inferred.freebuilder.processor.util
Utility methods for the javax.lang.model package.
ModelUtils() - Constructor for class org.inferred.freebuilder.processor.util.ModelUtils
 
mostVisible(Datatype.Visibility, Datatype.Visibility) - Static method in enum org.inferred.freebuilder.processor.Datatype.Visibility
 
mutator(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 

N

NamingConvention - Interface in org.inferred.freebuilder.processor.naming
 
NamingConventions - Class in org.inferred.freebuilder.processor.naming
 
needsSafeVarargs(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns true if a method with a variable number of elementType arguments needs a &#64;SafeVarargs annotation to avoid compiler warnings in Java 7+.
nestedType(String) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
Returns the QualifiedName of a type called simpleName nested in this one.
newBuilder(BuilderFactory.TypeInference) - Method in class org.inferred.freebuilder.processor.BuildableType
Returns an excerpt calling the Builder factory method.
newBuilder(Type, BuilderFactory.TypeInference) - Method in enum org.inferred.freebuilder.processor.BuilderFactory
Returns an excerpt calling the Builder factory method.
notEquals(Object, Object, TypeKind) - Static method in class org.inferred.freebuilder.processor.util.ObjectsExcerpts
Returns an Excerpt equivalent to !Objects.equals(a, b).
nullable() - Static method in enum org.inferred.freebuilder.processor.util.feature.Jsr305
Excerpt that adds a JSR-303 Nullable annotation, if available.
nullableSetter(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 

O

ObjectsExcerpts - Class in org.inferred.freebuilder.processor.util
 
of(BuildableType) - Static method in class org.inferred.freebuilder.processor.excerpt.BuildableList
 
of(String, E) - Static method in class org.inferred.freebuilder.processor.util.LazyName
 
of(String, String, String...) - Static method in class org.inferred.freebuilder.processor.util.QualifiedName
Returns a QualifiedName for a type in packageName.
of(Class<?>) - Static method in class org.inferred.freebuilder.processor.util.QualifiedName
Returns a QualifiedName for cls, unshading if necessary.
of(TypeElement) - Static method in class org.inferred.freebuilder.processor.util.QualifiedName
Returns a QualifiedName for type.
on(Object) - Method in class org.inferred.freebuilder.processor.util.FieldAccess
 
only(Modifier, Set<ExecutableElement>) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
 
onParam(TemplateApplier.ParamAppender) - Method in class org.inferred.freebuilder.processor.util.TemplateApplier
 
onText(TemplateApplier.TextAppender) - Method in class org.inferred.freebuilder.processor.util.TemplateApplier
 
org.inferred.freebuilder - package org.inferred.freebuilder
 
org.inferred.freebuilder.processor - package org.inferred.freebuilder.processor
 
org.inferred.freebuilder.processor.excerpt - package org.inferred.freebuilder.processor.excerpt
 
org.inferred.freebuilder.processor.naming - package org.inferred.freebuilder.processor.naming
 
org.inferred.freebuilder.processor.util - package org.inferred.freebuilder.processor.util
 
org.inferred.freebuilder.processor.util.feature - package org.inferred.freebuilder.processor.util.feature
 
overrides(TypeElement, Types, String, TypeMirror...) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
Returns whether type overrides method methodName(params).
overrides(DeclaredType, Types, String, TypeMirror...) - Static method in class org.inferred.freebuilder.processor.util.ModelUtils
 

P

parse(CharSequence) - Method in class org.inferred.freebuilder.processor.util.TemplateApplier
 
partialToBuilder() - Method in class org.inferred.freebuilder.processor.BuildableType
 
PreconditionExcerpts - Class in org.inferred.freebuilder.processor.util
Code snippets that call or emulate Guava's Preconditions methods.
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class org.inferred.freebuilder.processor.Processor
 
Processor - Class in org.inferred.freebuilder.processor
Processor for the @FreeBuilder annotation.
Processor() - Constructor for class org.inferred.freebuilder.processor.Processor
 
Processor(FeatureSet) - Constructor for class org.inferred.freebuilder.processor.Processor
 
Property - Class in org.inferred.freebuilder.processor
Datatype about a property of a Datatype.
Property() - Constructor for class org.inferred.freebuilder.processor.Property
 
property - Variable in class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
Property.Builder - Class in org.inferred.freebuilder.processor
Builder for Property.
PropertyCodeGenerator - Class in org.inferred.freebuilder.processor
Property-type-specific code generation interface.
PropertyCodeGenerator(Datatype, Property) - Constructor for class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
PropertyCodeGenerator.Initially - Enum in org.inferred.freebuilder.processor
General behaviour type for a fresh or reset property.
putAllMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
putIfAbsent(Scope.Key<V>, V) - Method in class org.inferred.freebuilder.processor.util.Scope
If key is not already associated with a value, associates it with value.
putMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 

Q

QualifiedName - Class in org.inferred.freebuilder.processor.util
The qualified name of a type.
quote(CharSequence, int, int) - Static method in class org.inferred.freebuilder.processor.util.Quotes
 
Quotes - Class in org.inferred.freebuilder.processor.util
 

R

removeAllMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
removeMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
RoundEnvironments - Class in org.inferred.freebuilder.processor.util
Utility class for RoundEnvironment.

S

Scope - Class in org.inferred.freebuilder.processor.util
An append-only, hierarchical map with key-specific value typing.
Scope() - Constructor for class org.inferred.freebuilder.processor.util.Scope
 
Scope(Scope) - Constructor for class org.inferred.freebuilder.processor.util.Scope
 
scope() - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
Returns the current scope (e.g.
Scope.Key<V> - Interface in org.inferred.freebuilder.processor.util
 
Scope.Level - Enum in org.inferred.freebuilder.processor.util
 
setComparatorMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
setCountMethod(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
setter(Property) - Static method in class org.inferred.freebuilder.processor.BuilderMethods
 
setValueTypeVisibility(Datatype.Visibility) - Method in class org.inferred.freebuilder.processor.Datatype.Builder
Sets the value to be returned by Datatype.getValueTypeVisibility() to the most visible of the current value and visibility.
Shading - Class in org.inferred.freebuilder.processor.util
Utility methods related to @FreeBuilder dependencies being relocated as part of shading.
Shading() - Constructor for class org.inferred.freebuilder.processor.util.Shading
 
SOURCE_LEVEL - Static variable in enum org.inferred.freebuilder.processor.util.feature.SourceLevel
Constant to pass to SourceBuilder.feature(FeatureType) to get the current SourceLevel.
SourceBuilder - Class in org.inferred.freebuilder.processor.util
Source code builder, using format strings for readability, with sensible formatting for type objects.
SourceLevel - Enum in org.inferred.freebuilder.processor.util.feature
Compliance levels which are idiomatically supported by this processor.
standardMethodUnderride(Datatype.StandardMethod) - Method in class org.inferred.freebuilder.processor.Datatype
 
StaticFeatureSet - Class in org.inferred.freebuilder.processor.util.feature
Stores a set of Feature instances, defaulting to FeatureType.testDefault(org.inferred.freebuilder.processor.util.feature.FeatureSet) when asked for a type that was not explicitly registered.
StaticFeatureSet(Feature<?>...) - Constructor for class org.inferred.freebuilder.processor.util.feature.StaticFeatureSet
Creates a feature set which will return features when StaticFeatureSet.get(org.inferred.freebuilder.processor.util.feature.FeatureType<T>) is called for the appropriate type.
suppressUnchecked() - Method in class org.inferred.freebuilder.processor.BuildableType
 

T

TemplateApplier - Class in org.inferred.freebuilder.processor.util
 
TemplateApplier.ParamAppender - Interface in org.inferred.freebuilder.processor.util
 
TemplateApplier.TextAppender - Interface in org.inferred.freebuilder.processor.util
 
testDefault(FeatureSet) - Method in class org.inferred.freebuilder.processor.util.feature.FeatureType
Returns the instance of F to use by default in tests.
toBuilder() - Method in class org.inferred.freebuilder.processor.Datatype
 
toBuilder() - Method in class org.inferred.freebuilder.processor.Property
 
toString() - Method in enum org.inferred.freebuilder.processor.Datatype.Visibility
 
toString() - Method in class org.inferred.freebuilder.processor.PropertyCodeGenerator
 
toString() - Method in enum org.inferred.freebuilder.processor.util.feature.GuavaLibrary
 
toString() - Method in enum org.inferred.freebuilder.processor.util.feature.JavaxPackage
 
toString() - Method in enum org.inferred.freebuilder.processor.util.feature.Jsr305
 
toString() - Method in enum org.inferred.freebuilder.processor.util.feature.SourceLevel
 
toString() - Method in class org.inferred.freebuilder.processor.util.feature.StaticFeatureSet
 
toString() - Method in class org.inferred.freebuilder.processor.util.FunctionalType
 
toString() - Method in class org.inferred.freebuilder.processor.util.QualifiedName
Returns this qualified name as a string.
toString() - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
 
toString() - Method in class org.inferred.freebuilder.processor.util.TypeClass
 
toString() - Method in class org.inferred.freebuilder.processor.util.ValueType
 
type() - Method in class org.inferred.freebuilder.processor.BuildableType
Returns the parameterized buildable type.
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedList
 
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedListMultimap
 
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedMap
 
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedMultiset
 
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedNavigableSet
 
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedSet
 
TYPE - Static variable in class org.inferred.freebuilder.processor.excerpt.CheckedSetMultimap
 
type() - Method in class org.inferred.freebuilder.processor.util.feature.FeatureType
 
Type - Class in org.inferred.freebuilder.processor.util
Representation of a parameterized class or interface type.
Type() - Constructor for class org.inferred.freebuilder.processor.util.Type
 
TypeClass - Class in org.inferred.freebuilder.processor.util
Representation of a class or interface element.
typename() - Method in class org.inferred.freebuilder.processor.util.SourceBuilder
Return the qualified name of the main type declared by this unit.
typeParameters() - Method in class org.inferred.freebuilder.processor.util.Type
Returns a source excerpt of the type parameters of this type, including angle brackets.

U

unaryOperator(TypeMirror) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
 
unboxedUnaryOperator(TypeMirror, Types) - Static method in class org.inferred.freebuilder.processor.util.FunctionalType
 
unshadedName(String) - Static method in class org.inferred.freebuilder.processor.util.Shading
 
Util - Class in org.inferred.freebuilder.processor
Utility class for common static methods.

V

valueOf(String) - Static method in enum org.inferred.freebuilder.processor.BuildableType.MergeBuilderMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.BuildableType.PartialToBuilderMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.BuilderFactory.TypeInference
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.BuilderFactory
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.Datatype.StandardMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.Datatype.UnderrideLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.Datatype.Visibility
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.PropertyCodeGenerator.Initially
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.util.feature.GuavaLibrary
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.util.feature.JavaxPackage
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.util.feature.Jsr305
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.util.feature.SourceLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.inferred.freebuilder.processor.util.Scope.Level
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.inferred.freebuilder.processor.BuildableType.MergeBuilderMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.BuildableType.PartialToBuilderMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.BuilderFactory.TypeInference
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.BuilderFactory
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.Datatype.StandardMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.Datatype.UnderrideLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.Datatype.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.PropertyCodeGenerator.Initially
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.util.feature.GuavaLibrary
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.util.feature.JavaxPackage
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.util.feature.Jsr305
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.util.feature.SourceLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.inferred.freebuilder.processor.util.Scope.Level
Returns an array containing the constants of this enum type, in the order they are declared.
ValueType - Class in org.inferred.freebuilder.processor.util
Represents an instance that compares in Object.hashCode() and Object.equals(Object) using a sequence of fields.
ValueType() - Constructor for class org.inferred.freebuilder.processor.util.ValueType
 
ValueType.FieldReceiver - Interface in org.inferred.freebuilder.processor.util
An object that receives fields (names and current values) for processing.
Variable - Class in org.inferred.freebuilder.processor.util
 
Variable(String) - Constructor for class org.inferred.freebuilder.processor.util.Variable
 
visitArray(ArrayType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitDeclared(DeclaredType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitError(ErrorType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitExecutable(ExecutableType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitIntersection(IntersectionType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitNoType(NoType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitNull(NullType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitPrimitive(PrimitiveType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitTypeVariable(TypeVariable, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitUnion(UnionType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 
visitWildcard(WildcardType, Void) - Method in class org.inferred.freebuilder.processor.util.IsInvalidTypeVisitor
 

W

withParameters(TypeParameterElement...) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
withParameters(TypeMirror, TypeMirror...) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
withParameters(Iterable<? extends TypeParameterElement>) - Method in class org.inferred.freebuilder.processor.util.QualifiedName
 
withParams(Object[]) - Static method in class org.inferred.freebuilder.processor.util.TemplateApplier
 
withWildcards() - Method in class org.inferred.freebuilder.processor.util.Type
Returns a new type of the same class, parameterized with wildcards ("?").
writeCompilationUnit(Filer, SourceBuilder, Element) - Static method in class org.inferred.freebuilder.processor.util.FilerUtils
Writes unit to the correct file.
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links