Class ELFunctionDiscovery
java.lang.Object
io.micronaut.el.processor.compiler.ELFunctionDiscovery
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ELFunctionDiscoverycurrent()@Nullable io.micronaut.inject.ast.MethodElementbooleanregister(io.micronaut.inject.ast.ClassElement type) Registers the functions a class of the current compilation declares.voidreset()Forgets everything, at the start of a compilation.
-
Constructor Details
-
ELFunctionDiscovery
public ELFunctionDiscovery()
-
-
Method Details
-
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
- 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.
-