Class ProcessorProxyUtil

java.lang.Object
org.asciidoctor.jruby.extension.processorproxies.ProcessorProxyUtil

public final class ProcessorProxyUtil extends Object
  • Method Details

    • getExtensionBaseClass

      public static org.jruby.RubyClass getExtensionBaseClass(org.jruby.Ruby rubyRuntime, String processorClassName)
      For a simple Ruby class name like "Treeprocessor" it returns the associated RubyClass from Asciidoctor::Extensions, e.g. Asciidoctor::Extensions::Treeprocessor
      Parameters:
      rubyRuntime -
      processorClassName -
      Returns:
      The Ruby class object for the given extension class name, e.g. Asciidoctor::Extensions::TreeProcessor
    • defineProcessorClass

      public static org.jruby.RubyClass defineProcessorClass(org.jruby.Ruby rubyRuntime, String baseClassName, JRubyAsciidoctorObjectAllocator objectAllocator)
    • defineAnnotatedMethods

      public static void defineAnnotatedMethods(org.jruby.RubyClass rubyClass, Class<?> proxyClass)
      Defines the annotated methods of the given class and all super classes as RubyModule.defineAnnotatedMethods(Class) does not handle inherited methods.
      Parameters:
      rubyClass -
      proxyClass -