Class ProcessorProxyUtil


  • public final class ProcessorProxyUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void defineAnnotatedMethods​(org.jruby.RubyClass rubyClass, java.lang.Class<?> proxyClass)
      Defines the annotated methods of the given class and all super classes as RubyModule.defineAnnotatedMethods(Class) does not handle inherited methods.
      static org.jruby.RubyClass defineProcessorClass​(org.jruby.Ruby rubyRuntime, java.lang.String baseClassName, JRubyAsciidoctorObjectAllocator objectAllocator)  
      static org.jruby.RubyClass getExtensionBaseClass​(org.jruby.Ruby rubyRuntime, java.lang.String processorClassName)
      For a simple Ruby class name like "Treeprocessor" it returns the associated RubyClass from Asciidoctor::Extensions, e.g.
      • Methods inherited from class java.lang.Object

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

      • getExtensionBaseClass

        public static org.jruby.RubyClass getExtensionBaseClass​(org.jruby.Ruby rubyRuntime,
                                                                java.lang.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,
                                                               java.lang.String baseClassName,
                                                               JRubyAsciidoctorObjectAllocator objectAllocator)
      • defineAnnotatedMethods

        public static void defineAnnotatedMethods​(org.jruby.RubyClass rubyClass,
                                                  java.lang.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 -