public final class ProcessorProxyUtil
extends java.lang.Object
Modifier and Type | Method and 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.
|
public static org.jruby.RubyClass getExtensionBaseClass(org.jruby.Ruby rubyRuntime, java.lang.String processorClassName)
rubyRuntime
- processorClassName
- public static org.jruby.RubyClass defineProcessorClass(org.jruby.Ruby rubyRuntime, java.lang.String baseClassName, JRubyAsciidoctorObjectAllocator objectAllocator)
public static void defineAnnotatedMethods(org.jruby.RubyClass rubyClass, java.lang.Class<?> proxyClass)
RubyModule.defineAnnotatedMethods(Class)
does not handle inherited methods.rubyClass
- proxyClass
-