Class ProcessorProxyUtil
java.lang.Object
org.asciidoctor.jruby.extension.processorproxies.ProcessorProxyUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddefineAnnotatedMethods(org.jruby.RubyClass rubyClass, 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.RubyClassdefineProcessorClass(org.jruby.Ruby rubyRuntime, String baseClassName, JRubyAsciidoctorObjectAllocator objectAllocator) static org.jruby.RubyClassgetExtensionBaseClass(org.jruby.Ruby rubyRuntime, String processorClassName) For a simple Ruby class name like "Treeprocessor" it returns the associated RubyClass from Asciidoctor::Extensions, e.g.
-
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
Defines the annotated methods of the given class and all super classes asRubyModule.defineAnnotatedMethods(Class)does not handle inherited methods.- Parameters:
rubyClass-proxyClass-
-