Example #1
0
 public ChainedDataConverter(NativeDataConverter first, NativeDataConverter second) {
   super(
       first.isReferenceRequired() || second.isReferenceRequired(),
       first.isPostInvokeRequired() || second.isPostInvokeRequired());
   this.upper = first;
   this.lower = second;
 }
Example #2
0
 public IRubyObject toNative(ThreadContext context, IRubyObject obj) {
   return lower.toNative(context, upper.toNative(context, obj));
 }
Example #3
0
 public IRubyObject fromNative(ThreadContext context, IRubyObject obj) {
   return upper.fromNative(context, lower.fromNative(context, obj));
 }
Example #4
0
 public NativeType nativeType() {
   return lower.nativeType();
 }