Class ProcessorProxyUtil
- java.lang.Object
-
- org.asciidoctor.jruby.extension.processorproxies.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 asRubyModule.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.
-
-
-
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 asRubyModule.defineAnnotatedMethods(Class)
does not handle inherited methods.- Parameters:
rubyClass
-proxyClass
-
-
-