Class JavaNativeElementsHelper
java.lang.Object
io.micronaut.inject.utils.NativeElementsHelper<TypeElement,ExecutableElement>
io.micronaut.annotation.processing.JavaNativeElementsHelper
@Internal
public final class JavaNativeElementsHelper
extends NativeElementsHelper<TypeElement,ExecutableElement>
The Java native element helper.
- Since:
- 4.3.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.inject.utils.NativeElementsHelper
NativeElementsHelper.MethodElement<N> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexcludeClass(TypeElement classNode) Checks if the class needs to be excluded.findOverriddenMethods(ExecutableElement methodElement) protected @NonNull Collection<TypeElement>getInterfaces(TypeElement classNode) Extracts the interfaces of the class.getMethodName(ExecutableElement element) Gets the element name.protected @NonNull List<ExecutableElement>getMethods(TypeElement classNode) Extracts the enclosed elements of the class.protected TypeElementgetSuperClass(TypeElement classNode) Extracts the super class.protected booleanisInterface(TypeElement classNode) Is interface.protected booleanoverrides(ExecutableElement m1, ExecutableElement m2, TypeElement typeElement) Check if one method overrides another.Methods inherited from class io.micronaut.inject.utils.NativeElementsHelper
cleanupForClass, findOverriddenMethods, getClassCacheKey, getMethodCacheKey, populateTypeHierarchy
-
Constructor Details
-
JavaNativeElementsHelper
-
-
Method Details
-
findOverriddenMethods
-
overrides
Description copied from class:NativeElementsHelperCheck if one method overrides another.- Specified by:
overridesin classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
m1- The override methodm2- The overridden methodtypeElement- The class owner of the methods- Returns:
- true if overridden
-
getMethodName
Description copied from class:NativeElementsHelperGets the element name.- Specified by:
getMethodNamein classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
element- The element- Returns:
- The name
-
getSuperClass
Description copied from class:NativeElementsHelperExtracts the super class.- Specified by:
getSuperClassin classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
classNode- The class- Returns:
- The super calss
-
getInterfaces
Description copied from class:NativeElementsHelperExtracts the interfaces of the class.- Specified by:
getInterfacesin classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
classNode- The class- Returns:
- The interfaces
-
getMethods
Description copied from class:NativeElementsHelperExtracts the enclosed elements of the class.- Specified by:
getMethodsin classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
classNode- The class- Returns:
- The enclosed elements
-
excludeClass
Description copied from class:NativeElementsHelperChecks if the class needs to be excluded.- Specified by:
excludeClassin classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
classNode- The class- Returns:
- true if to exclude
-
isInterface
Description copied from class:NativeElementsHelperIs interface.- Specified by:
isInterfacein classNativeElementsHelper<TypeElement,ExecutableElement> - Parameters:
classNode- The class node- Returns:
- true if interface
-