Package org.intellij.plugins.junitgen.bean

Examples of org.intellij.plugins.junitgen.bean.MethodComposite


        String signature = createSignature(method);

        List<String> reflectionCode = createReflectionCode(genCtx, method);

        //create the composite object to send to the template
        final MethodComposite composite = new MethodComposite();
        composite.setMethod(method);
        composite.setName(method.getName());
        composite.setParamClasses(paramClassList);
        composite.setParamNames(paramNameList);
        composite.setReflectionCode(reflectionCode);
        composite.setSignature(signature);

        //if the super method is not the same as us, grab the data from that also
        final PsiMethod[] superMethods = method.findSuperMethods();
        if (superMethods.length > 0) {
            composite.setBase(toComposite(genCtx, superMethods[0]));
        }
        return composite;
    }
View Full Code Here


            }
        }

        for (int i = 0; i < methodList.size(); i++) {

            MethodComposite method = methodList.get(i);
            String methodName = method.getName();
            if (overloadMethodNameMap.containsKey(methodName)) {
                int count = overloadMethodNameMap.get(methodName);
                overloadMethodNameMap.remove(methodName);
                overloadMethodNameMap.put(methodName, count - 1);
                methodList.set(i, mutateOverloadedMethodName(context, method, count));
View Full Code Here

TOP

Related Classes of org.intellij.plugins.junitgen.bean.MethodComposite

Copyright © 2018 www.massapicom. 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.