public class ImmutablesBuilderProvider extends DefaultBuilderProvider
org.immutables.value.Value.Immutable are considered for this discovery.| Constructor and Description |
|---|
ImmutablesBuilderProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected TypeElement |
asImmutableElement(TypeElement typeElement,
Elements elements) |
protected BuilderInfo |
findBuilderInfo(TypeElement typeElement,
Elements elements,
Types types)
Find the
BuilderInfo for the given typeElement. |
protected BuilderInfo |
findBuilderInfoForImmutables(TypeElement typeElement,
TypeElement immutableAnnotation,
Elements elements,
Types types) |
findBuilderInfo, findBuildMethods, getTypeElement, isBuildMethod, isPossibleBuilderCreationMethod, shouldIgnoreprotected BuilderInfo findBuilderInfo(TypeElement typeElement, Elements elements, Types types)
DefaultBuilderProviderBuilderInfo for the given typeElement.
The default implementation iterates over all the methods in typeElement and uses
DefaultBuilderProvider.isPossibleBuilderCreationMethod(ExecutableElement, TypeElement, Types) and
DefaultBuilderProvider.findBuildMethods(TypeElement, TypeElement, Types) to create the
BuilderInfo.
The default implementation uses DefaultBuilderProvider.shouldIgnore(TypeElement) to check if the
typeElement should be ignored.
In case there are multiple BuilderInfo then a MoreThanOneBuilderCreationMethodException is
thrown.
findBuilderInfo in class DefaultBuilderProvidertypeElement - the type element for which a builder searchedelements - the util elements that can be used for operating on the type elementtypes - the util types that can be used for operation on TypeMirror(s)BuilderInfo or null if no builder was found for the type
DefaultBuilderProvider.findBuildMethods(TypeElement, TypeElement, Types)protected BuilderInfo findBuilderInfoForImmutables(TypeElement typeElement, TypeElement immutableAnnotation, Elements elements, Types types)
protected TypeElement asImmutableElement(TypeElement typeElement, Elements elements)
Copyright © 2012–2018. All rights reserved.