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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
excludeClass
(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 TypeElement
getSuperClass
(TypeElement classNode) Extracts the super class.protected boolean
isInterface
(TypeElement classNode) Is interface.protected boolean
overrides
(ExecutableElement m1, ExecutableElement m2, TypeElement typeElement) Check if one method overrides another.Methods inherited from class io.micronaut.inject.utils.NativeElementsHelper
findOverriddenMethods, getClassCacheKey, getMethodCacheKey, populateTypeHierarchy
-
Constructor Details
-
JavaNativeElementsHelper
-
-
Method Details
-
findOverriddenMethods
-
overrides
Description copied from class:NativeElementsHelper
Check if one method overrides another.- Specified by:
overrides
in 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:NativeElementsHelper
Gets the element name.- Specified by:
getMethodName
in classNativeElementsHelper<TypeElement,
ExecutableElement> - Parameters:
element
- The element- Returns:
- The name
-
getSuperClass
Description copied from class:NativeElementsHelper
Extracts the super class.- Specified by:
getSuperClass
in classNativeElementsHelper<TypeElement,
ExecutableElement> - Parameters:
classNode
- The class- Returns:
- The super calss
-
getInterfaces
Description copied from class:NativeElementsHelper
Extracts the interfaces of the class.- Specified by:
getInterfaces
in classNativeElementsHelper<TypeElement,
ExecutableElement> - Parameters:
classNode
- The class- Returns:
- The interfaces
-
getMethods
Description copied from class:NativeElementsHelper
Extracts the enclosed elements of the class.- Specified by:
getMethods
in classNativeElementsHelper<TypeElement,
ExecutableElement> - Parameters:
classNode
- The class- Returns:
- The enclosed elements
-
excludeClass
Description copied from class:NativeElementsHelper
Checks if the class needs to be excluded.- Specified by:
excludeClass
in classNativeElementsHelper<TypeElement,
ExecutableElement> - Parameters:
classNode
- The class- Returns:
- true if to exclude
-
isInterface
Description copied from class:NativeElementsHelper
Is interface.- Specified by:
isInterface
in classNativeElementsHelper<TypeElement,
ExecutableElement> - Parameters:
classNode
- The class node- Returns:
- true if interface
-