Examples of unbox()


Examples of clojure.asm.commons.GeneratorAdapter.unbox()

        if(retClass == void.class)
          {
          gen.pop();
          }
        else
          gen.unbox(retType);
        }

      Label end = gen.mark();
      gen.visitLocalVariable("this", obj.objtype.getDescriptor(), null, loopLabel, end, 0);
      for(ISeq lbs = argLocals.seq(); lbs != null; lbs = lbs.next())
View Full Code Here

Examples of cn.wensiqun.asmsupport.asm.InstructionHelper.unbox()

                return;
            }
           
            if(allocateDims.length == 1){
                allocateDims[0].loadToStack(block);
                ih.unbox(allocateDims[0].getParamterizedType().getType());
                ih.newArray(arrayCls.getNextDimType().getType());
            }else{
                for(Parameterized allocate : allocateDims){
                    allocate.loadToStack(block);
                    ih.unbox(allocate.getParamterizedType().getType());
View Full Code Here

Examples of cn.wensiqun.asmsupport.asm.InstructionHelper.unbox()

                ih.unbox(allocateDims[0].getParamterizedType().getType());
                ih.newArray(arrayCls.getNextDimType().getType());
            }else{
                for(Parameterized allocate : allocateDims){
                    allocate.loadToStack(block);
                    ih.unbox(allocate.getParamterizedType().getType());
                }
                ih.multiANewArrayInsn(arrayCls.getType(), allocateDims.length);
            }
        }else{
            loopArray(arrayCls, values);
View Full Code Here

Examples of com.volantis.testtools.mock.generator.model.MockableMethod.unbox()

                out("        try {\n");
                if (returnType.toString().equals("void")) {
                    out("            _doMethodCall(_call);\n");
                } else {
                    out("            java.lang.Object _result = _doMethodCall(_call);\n");
                    out("            return ").out(method.unbox(returnType, "_result")).out(";\n");
                }
                out("        }\n");
                out("        catch(Throwable _throwable) {\n");
                out("            // If result is a subclass of Error, RuntimeException then rethrow\n");
                out("            // it, if it is one of the exceptions that this method declares\n");
View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.unbox()

/*  97 */             e.iinc(index, diff);
/*  98 */             lastIndex = i;
/*     */           }
/* 100 */           e.dup2();
/* 101 */           e.aaload(i);
/* 102 */           e.unbox(setter.getSignature().getArgumentTypes()[0]);
/* 103 */           e.invoke(setter);
/*     */         }
/*     */       }
/* 106 */       handler.end();
/* 107 */       e.return_value();
View Full Code Here

Examples of org.codehaus.groovy.classgen.BytecodeHelper.unbox()

            // cast argument to parameter class, inclusive unboxing
            // for methods with primitive types
            Class parameterType = parameters[i];
            if (parameterType.isPrimitive()) {
                helper.unbox(parameterType);
            } else {
                helper.doCast(parameterType);
            }
        }       
       
View Full Code Here

Examples of org.jruby.ir.dataflow.analyses.UnboxableOpsAnalysisProblem.unbox()

    @Override
    public Object execute(IRScope scope, Object... data) {
        UnboxableOpsAnalysisProblem problem = new UnboxableOpsAnalysisProblem();
        problem.setup(scope);
        problem.compute_MOP_Solution();
        problem.unbox();

        return true;
    }

    public boolean invalidate(IRScope scope) {
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.unbox()

        ga.loadThis();
        ga.getStatic(type, field, METHOD);
        ga.loadArgArray();
        ga.invokeInterface(HANDLER, INVOKE);
        if (m.getReturnType() != Type.VOID_TYPE) {
          ga.unbox(m.getReturnType());
        }
        ga.returnValue();
        ga.endMethod();
      }
    }
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.unbox()

        ga.invokeInterface(INVOCATION_HANDLER_TYPE,
                INVOCATION_HANDLER_INVOKE_METHOD);

        Label after = ga.mark();

        ga.unbox(m.getReturnType());
        ga.returnValue();

        // this is a simple rethrow handler
        Label rethrow = ga.mark();
        ga.visitInsn(Opcodes.ATHROW);
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.unbox()

     */
    switch (returnType.getSort())
    {
      case Type.BOOLEAN:
        methodAdapter.cast(OBJECT_TYPE, Type.getType(Boolean.class));
        methodAdapter.unbox(Type.BOOLEAN_TYPE);
        break;
      case Type.BYTE:
        methodAdapter.cast(OBJECT_TYPE, Type.getType(Byte.class));
        methodAdapter.unbox(Type.BYTE_TYPE);
        break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.