Examples of recordReturnType()


Examples of javassist.compiler.Javac.recordReturnType()

        try {
            int nvars = jv.recordParams(getParameterTypes(),
                                        Modifier.isStatic(getModifiers()));
            jv.recordParamNames(ca, nvars);
            CtClass rtype = getReturnType0();
            int varNo = jv.recordReturnType(rtype, true);
            jv.recordLocalVariables(ca, 0);

            int handlerLen = insertAfterHandler(asFinally, b, rtype, varNo);

            byte[] save = makeSaveCode(pool, rtype, varNo);
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/* 207 */       CtClass[] params = Descriptor.getParameterTypes(signature, cp);
/* 208 */       CtClass retType = Descriptor.getReturnType(signature, cp);
/* 209 */       int paramVar = ca.getMaxLocals();
/* 210 */       jc.recordParams(classname, params, true, paramVar, withinStatic());
/*     */
/* 212 */       int retVar = jc.recordReturnType(retType, true);
/* 213 */       if (c == 184)
/* 214 */         jc.recordStaticProceed(classname, methodname);
/* 215 */       else if (c == 183) {
/* 216 */         jc.recordSpecialProceed("$0", classname, methodname, signature);
/*     */       }
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/*     */     }
/* 215 */     int paramVar = ca.getMaxLocals();
/* 216 */     jc.recordParams("java.lang.Object", params, true, paramVar, withinStatic());
/*     */
/* 221 */     checkResultValue(retType, statement);
/* 222 */     int retVar = jc.recordReturnType(retType, true);
/* 223 */     jc.recordProceed(new ProceedForArray(retType, this.opcode, index, dim));
/*     */
/* 225 */     Bytecode bytecode = jc.getBytecode();
/* 226 */     storeStack(params, true, paramVar, bytecode);
/* 227 */     jc.recordLocalVariables(ca, pos);
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/* 186 */       CtClass[] params = Descriptor.getParameterTypes(signature, cp);
/* 187 */       CtClass newType = cp.get(this.newTypeName);
/* 188 */       int paramVar = ca.getMaxLocals();
/* 189 */       jc.recordParams(this.newTypeName, params, true, paramVar, withinStatic());
/*     */
/* 191 */       int retVar = jc.recordReturnType(newType, true);
/* 192 */       jc.recordProceed(new ProceedForNew(newType, newIndex, methodIndex));
/*     */
/* 197 */       checkResultValue(newType, statement);
/*     */
/* 199 */       Bytecode bytecode = jc.getBytecode();
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/* 102 */       CtClass retType = getType();
/*     */
/* 104 */       int paramVar = ca.getMaxLocals();
/* 105 */       jc.recordParams("java.lang.Object", params, true, paramVar, withinStatic());
/*     */
/* 107 */       int retVar = jc.recordReturnType(retType, true);
/* 108 */       jc.recordProceed(new ProceedForCast(index, retType));
/*     */
/* 112 */       checkResultValue(retType, statement);
/*     */
/* 114 */       Bytecode bytecode = jc.getBytecode();
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/* 116 */     b.setMaxLocals(ca.getMaxLocals());
/*     */     try
/*     */     {
/* 119 */       CtClass type = getType();
/* 120 */       int var = jv.recordVariable(type, EXCEPTION_NAME);
/* 121 */       jv.recordReturnType(type, false);
/* 122 */       b.addAstore(var);
/* 123 */       jv.compileStmnt(src);
/* 124 */       b.addAload(var);
/*     */
/* 126 */       int oldHandler = this.etable.handlerPc(this.index);
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/*     */
/* 180 */       boolean included = checkResultValue(retType, statement);
/* 181 */       if (read) {
/* 182 */         included = true;
/*     */       }
/* 184 */       int retVar = jc.recordReturnType(retType, included);
/* 185 */       if (read) {
/* 186 */         jc.recordProceed(new ProceedForRead(retType, this.opcode, index, paramVar));
/*     */       }
/*     */       else
/*     */       {
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/* 105 */       CtClass retType = CtClass.booleanType;
/*     */
/* 107 */       int paramVar = ca.getMaxLocals();
/* 108 */       jc.recordParams("java.lang.Object", params, true, paramVar, withinStatic());
/*     */
/* 110 */       int retVar = jc.recordReturnType(retType, true);
/* 111 */       jc.recordProceed(new ProceedForInstanceof(index));
/*     */
/* 114 */       jc.recordType(getType());
/*     */
/* 118 */       checkResultValue(retType, statement);
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

/*      */     try {
/*  774 */       int nvars = jv.recordParams(getParameterTypes(), Modifier.isStatic(getModifiers()));
/*      */
/*  776 */       jv.recordParamNames(ca, nvars);
/*  777 */       CtClass rtype = getReturnType0();
/*  778 */       int varNo = jv.recordReturnType(rtype, true);
/*  779 */       jv.recordLocalVariables(ca, 0);
/*      */
/*  782 */       int handlerLen = insertAfterHandler(asFinally, b, rtype, varNo, jv, src);
/*      */
/*  785 */       insertAfterAdvice(b, jv, src, pool, rtype, varNo);
View Full Code Here

Examples of javassist.compiler.Javac.recordReturnType()

        try {
            int nvars = jv.recordParams(getParameterTypes(),
                                        Modifier.isStatic(getModifiers()));
            jv.recordParamNames(ca, nvars);
            CtClass rtype = getReturnType0();
            int varNo = jv.recordReturnType(rtype, true);
            jv.recordLocalVariables(ca, 0);

            // finally clause for exceptions
            int handlerLen = insertAfterHandler(asFinally, b, rtype, varNo,
                                                jv, src);
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.