Class ELFunctionBinder

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

@Internal public final class ELFunctionBinder extends Object
Binds the functions a class declares to their qualified names.
Since:
1.0
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    bind(io.micronaut.inject.ast.ClassElement type, String defaultPrefix, boolean onlyAnnotated, Map<String, io.micronaut.inject.ast.MethodElement> into)
    Binds the functions of a class: its public static methods, the public instance methods it declares, and the @JvmStatic functions of its Kotlin companion object.
    static boolean
    declaresFunctions(io.micronaut.inject.ast.ClassElement type)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bind

      public static void bind(io.micronaut.inject.ast.ClassElement type, String defaultPrefix, boolean onlyAnnotated, Map<String, io.micronaut.inject.ast.MethodElement> into)
      Binds the functions of a class: its public static methods, the public instance methods it declares, and the @JvmStatic functions of its Kotlin companion object. Once a method of the class is annotated with ELFunction, only the annotated methods are functions.
      Parameters:
      type - The class
      defaultPrefix - The prefix of the functions that declare none
      onlyAnnotated - Whether only the methods annotated with ELFunction are bound
      into - The functions, by qualified name
    • declaresFunctions

      public static boolean declaresFunctions(io.micronaut.inject.ast.ClassElement type)
      Parameters:
      type - The class
      Returns:
      Whether the class declares a function with ELFunction, on a method of its own or of its Kotlin companion object