Class AccessorAttributesCollector
java.lang.Object
org.immutables.value.processor.meta.AccessorAttributesCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.common.collect.ImmutableListMultimap<String, TypeElement> private final List<ValueAttribute> private static final Modifier(package private) static final String(package private) static final Stringprivate booleanprivate final booleanprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final ProcessingEnvironmentprivate final Proto.Protoclassprivate final Reporterprivate final Styles(package private) static final Stringprivate final ValueType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TypeMirrorasInheritedMemberReturnType(ProcessingEnvironment processing, TypeElement typeElement, ExecutableElement method) (package private) voidcollect()private voidprivate Styles.UsingName.AttributeNamesderiveNames(String accessorName) private TypeElementprivate static booleanhasGenerateAnnotation(ExecutableElement attributeMethodCandidate) private static booleanisAbstract(Element element) private static booleanisDiscoveredAttribute(ExecutableElement attributeMethodCandidate, boolean isDefaultAsDefault) private booleanisElegibleAccessorMethod(Element element) private static booleanprivate booleanisJavaLangObjectType(TypeElement definingType) private booleanisJavaLangObjectType(TypeMirror typeMirror) private voidprocessGenerationCandidateMethod(ExecutableElement attributeMethodCandidate, TypeElement originalType) private voidprocessUtilityCandidateMethod(ExecutableElement utilityMethodCandidate, TypeElement originalType) private Reporter(package private) static TypeMirrorresolveReturnType(ProcessingEnvironment processing, ExecutableElement method, TypeElement typeElement) private TypeMirrorresolveReturnType(ExecutableElement method) private booleanreturnsNormalizedAbstractValueType(ExecutableElement validationMethodCandidate)
-
Field Details
-
ORDINAL_ORDINAL_ATTRIBUTE_NAME
- See Also:
-
ORDINAL_DOMAIN_ATTRIBUTE_NAME
- See Also:
-
PARCELABLE_DESCRIBE_CONTENTS_METHOD
- See Also:
-
DEFAULT_MODIFIER
-
ORG_ECLIPSE
- See Also:
-
EQUALS_METHOD
- See Also:
-
TO_STRING_METHOD
- See Also:
-
HASH_CODE_METHOD
- See Also:
-
protoclass
-
type
-
processing
-
attributes
-
styles
-
reporter
-
accessorMapping
-
isEclipseImplementation
private final boolean isEclipseImplementation -
hasNonInheritedAttributes
private boolean hasNonInheritedAttributes
-
-
Constructor Details
-
AccessorAttributesCollector
AccessorAttributesCollector(Proto.Protoclass protoclass, ValueType type)
-
-
Method Details
-
collect
void collect() -
getTypeElement
-
collectGeneratedCandidateMethods
-
isElegibleAccessorMethod
-
processUtilityCandidateMethod
private void processUtilityCandidateMethod(ExecutableElement utilityMethodCandidate, TypeElement originalType) -
isJavaLangObjectType
-
isJavaLangObjectType
-
processGenerationCandidateMethod
private void processGenerationCandidateMethod(ExecutableElement attributeMethodCandidate, TypeElement originalType) -
returnsNormalizedAbstractValueType
-
deriveNames
-
resolveReturnType
-
resolveReturnType
static TypeMirror resolveReturnType(ProcessingEnvironment processing, ExecutableElement method, TypeElement typeElement) -
asInheritedMemberReturnType
static TypeMirror asInheritedMemberReturnType(ProcessingEnvironment processing, TypeElement typeElement, ExecutableElement method) -
isAbstract
-
isFinal
-
isDiscoveredAttribute
private static boolean isDiscoveredAttribute(ExecutableElement attributeMethodCandidate, boolean isDefaultAsDefault) -
hasGenerateAnnotation
-
report
-