Class GroovyNativeElementHelper

java.lang.Object
io.micronaut.inject.utils.NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
io.micronaut.ast.groovy.GroovyNativeElementHelper

@Internal public final class GroovyNativeElementHelper extends NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
The Groovy native element helper.
Since:
4.3.0
Author:
Denis Stepanov
  • Constructor Details

    • GroovyNativeElementHelper

      public GroovyNativeElementHelper()
  • Method Details

    • overrides

      protected boolean overrides(org.codehaus.groovy.ast.MethodNode subMethod, org.codehaus.groovy.ast.MethodNode superMethod, org.codehaus.groovy.ast.ClassNode owner)
      Description copied from class: NativeElementsHelper
      Check if one method overrides another.
      Specified by:
      overrides in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      subMethod - The override method
      superMethod - The overridden method
      owner - The class owner of the methods
      Returns:
      true if overridden
    • getMethodName

      @NonNull protected @NonNull String getMethodName(org.codehaus.groovy.ast.MethodNode element)
      Description copied from class: NativeElementsHelper
      Gets the element name.
      Specified by:
      getMethodName in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      element - The element
      Returns:
      The name
    • getSuperClass

      protected org.codehaus.groovy.ast.ClassNode getSuperClass(org.codehaus.groovy.ast.ClassNode classNode)
      Description copied from class: NativeElementsHelper
      Extracts the super class.
      Specified by:
      getSuperClass in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      classNode - The class
      Returns:
      The super calss
    • getInterfaces

      @NonNull protected @NonNull Collection<org.codehaus.groovy.ast.ClassNode> getInterfaces(org.codehaus.groovy.ast.ClassNode classNode)
      Description copied from class: NativeElementsHelper
      Extracts the interfaces of the class.
      Specified by:
      getInterfaces in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      classNode - The class
      Returns:
      The interfaces
    • getMethods

      @NonNull protected @NonNull List<org.codehaus.groovy.ast.MethodNode> getMethods(org.codehaus.groovy.ast.ClassNode classNode)
      Description copied from class: NativeElementsHelper
      Extracts the enclosed elements of the class.
      Specified by:
      getMethods in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      classNode - The class
      Returns:
      The enclosed elements
    • excludeClass

      protected boolean excludeClass(org.codehaus.groovy.ast.ClassNode classNode)
      Description copied from class: NativeElementsHelper
      Checks if the class needs to be excluded.
      Specified by:
      excludeClass in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      classNode - The class
      Returns:
      true if to exclude
    • isInterface

      protected boolean isInterface(org.codehaus.groovy.ast.ClassNode classNode)
      Description copied from class: NativeElementsHelper
      Is interface.
      Specified by:
      isInterface in class NativeElementsHelper<org.codehaus.groovy.ast.ClassNode,org.codehaus.groovy.ast.MethodNode>
      Parameters:
      classNode - The class node
      Returns:
      true if interface