Class RubyObjectWrapper

java.lang.Object
org.asciidoctor.jruby.internal.RubyObjectWrapper
Direct Known Subclasses:
ContentNodeImpl, CursorImpl, ReaderImpl, RowImpl

public class RubyObjectWrapper extends Object
  • Field Details

    • runtime

      protected org.jruby.Ruby runtime
    • rubyNode

      protected org.jruby.runtime.builtin.IRubyObject rubyNode
  • Constructor Details

    • RubyObjectWrapper

      public RubyObjectWrapper(org.jruby.runtime.builtin.IRubyObject rubyNode)
  • Method Details

    • getRubyObject

      public org.jruby.runtime.builtin.IRubyObject getRubyObject()
    • getRuntime

      protected org.jruby.Ruby getRuntime()
    • getString

      public String getString(String propertyName, Object... args)
    • setString

      public void setString(String propertyName, String value)
    • getSymbol

      public String getSymbol(String propertyName, Object... args)
    • setSymbol

      public void setSymbol(String propertyName, String value)
    • getBoolean

      public boolean getBoolean(String propertyName, Object... args)
    • setBoolean

      public void setBoolean(String propertyName, boolean value)
    • getInt

      public int getInt(String propertyName, Object... args)
    • setInt

      public void setInt(String propertyName, int value)
    • getList

      public <T> List<T> getList(String propertyName, Class<T> elementClass, Object... args)
    • getRubyProperty

      public org.jruby.runtime.builtin.IRubyObject getRubyProperty(String propertyName, Object... args)
    • setRubyProperty

      public void setRubyProperty(String propertyName, org.jruby.runtime.builtin.IRubyObject arg)
    • getProperty

      public Object getProperty(String propertyName, Object... args)
    • toJava

      public Object toJava(org.jruby.runtime.builtin.IRubyObject rubyObject)
    • toJava

      public <T> T toJava(org.jruby.runtime.builtin.IRubyObject rubyObject, Class<T> targetClass)