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