Examples of addReturn()


Examples of com.sun.codemodel.internal.JDocComment.addReturn()

    private void writeGetPort(Port port, JType retType, JDefinedClass cls) {
        JMethod m = cls.method(JMod.PUBLIC, retType, port.getPortGetter());
        JDocComment methodDoc = m.javadoc();
        if (port.getJavaDoc() != null)
            methodDoc.add(port.getJavaDoc());
        JCommentPart ret = methodDoc.addReturn();
        JCommentPart paramDoc = methodDoc.addParam("features");
        paramDoc.append("A list of ");
        paramDoc.append("{@link " + WebServiceFeature.class.getName() + "}");
        paramDoc.append("to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.");
        ret.add("returns " + retType.name());
View Full Code Here

Examples of com.sun.codemodel.internal.JDocComment.addReturn()

        String portGetter = port.getPortGetter();
        JMethod m = cls.method(JMod.PUBLIC, retType, portGetter);
        JDocComment methodDoc = m.javadoc();
        if (port.getJavaDoc() != null)
            methodDoc.add(port.getJavaDoc());
        JCommentPart ret = methodDoc.addReturn();
        ret.add("returns " + retType.name());
        JBlock body = m.body();
        StringBuffer statement = new StringBuffer("return ");
        statement.append("super.getPort(new QName(\"").append(port.getName().getNamespaceURI()).append("\", \"").append(port.getName().getLocalPart()).append("\"), ");
        statement.append(retType.name());
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/*  64 */       for (int i = 0; i < params.length; i++)
/*  65 */         regno += code.addLoad(regno, params[i]);
/*  66 */       code.setMaxLocals(regno + 1);
/*  67 */       code.addInvokespecial(this.clazz, "<init>", desc);
/*     */
/*  69 */       code.addReturn(null);
/*  70 */       minfo.setCodeAttribute(code.toCodeAttribute());
/*  71 */       cf.addMethod(minfo);
/*     */     }
/*     */     catch (CannotCompileException e) {
/*  74 */       throw new CompileError(e);
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/* 126 */       if (desc == accDesc)
/* 127 */         code.addInvokestatic(this.clazz, name, desc);
/*     */       else {
/* 129 */         code.addInvokevirtual(this.clazz, name, desc);
/*     */       }
/* 131 */       code.addReturn(Descriptor.getReturnType(desc, pool));
/* 132 */       minfo.setCodeAttribute(code.toCodeAttribute());
/* 133 */       cf.addMethod(minfo);
/*     */     }
/*     */     catch (CannotCompileException e) {
/* 136 */       throw new CompileError(e);
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/* 178 */         code.addAload(0);
/* 179 */         code.addGetfield(Bytecode.THIS, fieldName, fieldType);
/* 180 */         code.setMaxLocals(1);
/*     */       }
/*     */
/* 183 */       code.addReturn(Descriptor.toCtClass(fieldType, pool));
/* 184 */       minfo.setCodeAttribute(code.toCodeAttribute());
/* 185 */       cf.addMethod(minfo);
/* 186 */       this.accessors.put(key, minfo);
/* 187 */       return minfo;
/*     */     }
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/* 232 */         reg = code.addLoad(1, Descriptor.toCtClass(fieldType, pool)) + 1;
/*     */
/* 234 */         code.addPutfield(Bytecode.THIS, fieldName, fieldType);
/*     */       }
/*     */
/* 237 */       code.addReturn(null);
/* 238 */       code.setMaxLocals(reg);
/* 239 */       minfo.setCodeAttribute(code.toCodeAttribute());
/* 240 */       cf.addMethod(minfo);
/* 241 */       this.accessors.put(key, minfo);
/* 242 */       return minfo;
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/* 236 */         code.addGetfield(Bytecode.THIS, fieldName, fieldType);
/*     */       }
/*     */       else {
/* 239 */         code.addGetstatic(Bytecode.THIS, fieldName, fieldType);
/*     */       }
/* 241 */       code.addReturn(field.getType());
/*     */     }
/*     */     catch (NotFoundException e) {
/* 244 */       throw new CannotCompileException(e);
/*     */     }
/*     */
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/*     */       else {
/* 281 */         code.addLoad(1, field.getType());
/* 282 */         code.addPutstatic(Bytecode.THIS, fieldName, fieldType);
/*     */       }
/*     */
/* 285 */       code.addReturn(null);
/*     */     }
/*     */     catch (NotFoundException e) {
/* 288 */       throw new CannotCompileException(e);
/*     */     }
/*     */
View Full Code Here

Examples of javassist.bytecode.Bytecode.addReturn()

/* 352 */       code.addLoad(0, deleClass);
/* 353 */       s = code.addLoadParameters(params, 1);
/* 354 */       code.addInvokespecial(deleClass, methodName, desc);
/*     */     }
/*     */
/* 357 */     code.addReturn(delegate.getReturnType());
/* 358 */     s++; code.setMaxLocals(s);
/* 359 */     code.setMaxStack(s < 2 ? 2 : s);
/* 360 */     minfo.setCodeAttribute(code.toCodeAttribute());
/* 361 */     return new CtMethod(minfo, declaring);
/*     */   }
View Full Code Here

Examples of org.apache.myfaces.config.impl.digester.elements.FacesFlowDefinitionImpl.addReturn()

                FacesFlowReturnImpl returnNode = new FacesFlowReturnImpl();
                returnNode.setId(flowName+"-return");
                NavigationCaseImpl returnNavCase = new NavigationCaseImpl();
                returnNavCase.setFromOutcome("/"+flowName+"-return");
                returnNode.setNavigationCase(returnNavCase);
                flow.addReturn(returnNode);
               
                facesConfig.getFacesFlowDefinitions().add(flow);
                return facesConfig;
            }
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.