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