Class ELFunctionDiscovery

java.lang.Object
io.micronaut.el.processor.compiler.ELFunctionDiscovery

@Internal public final class ELFunctionDiscovery extends Object
The functions declared with @ELFunction in the current compilation, registered as their classes are visited, which the expressions of the module use without listing them. The functions of another module are listed with @ELFunctions.
Since:
1.0
Author:
Denis Stepanov
  • Constructor Details

    • ELFunctionDiscovery

      public ELFunctionDiscovery()
  • Method Details

    • current

      public static ELFunctionDiscovery current()
      Returns:
      The discovery of the current compilation, shared by the visitors
    • register

      public boolean register(io.micronaut.inject.ast.ClassElement type)
      Registers the functions a class of the current compilation declares.
      Parameters:
      type - The class
      Returns:
      False if the class was registered already
    • find

      public @Nullable io.micronaut.inject.ast.MethodElement find(String qualifiedName)
      Parameters:
      qualifiedName - The qualified name of the function
      Returns:
      The function, or null when none is declared under the name
    • reset

      public void reset()
      Forgets everything, at the start of a compilation.