Interface ClassInjector

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void performInjection​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
      Handles injection of properties, methods etc.
      void performInjection​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode)
      Handles injection of properties, methods etc.
      void performInjectionOnAnnotatedClass​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
      Handles injection of properties, methods etc.
      boolean shouldInject​(java.net.URL url)
      Returns whether this injector should inject
    • Method Detail

      • performInjection

        void performInjection​(org.codehaus.groovy.control.SourceUnit source,
                              org.codehaus.groovy.classgen.GeneratorContext context,
                              org.codehaus.groovy.ast.ClassNode classNode)
        Handles injection of properties, methods etc. into a class.
        Parameters:
        source - The source unit
        context - The generator context
        classNode - The ClassNode instance
      • performInjection

        void performInjection​(org.codehaus.groovy.control.SourceUnit source,
                              org.codehaus.groovy.ast.ClassNode classNode)
        Handles injection of properties, methods etc. into a class.
        Parameters:
        source - The source unit
        classNode - The ClassNode instance
      • performInjectionOnAnnotatedClass

        void performInjectionOnAnnotatedClass​(org.codehaus.groovy.control.SourceUnit source,
                                              org.codehaus.groovy.ast.ClassNode classNode)
        Handles injection of properties, methods etc. into a class.
        Parameters:
        source - The source unit
        classNode - The ClassNode instance
      • shouldInject

        boolean shouldInject​(java.net.URL url)
        Returns whether this injector should inject
        Parameters:
        url - The URL of the source file
        Returns:
        true if injection should occur