Package de.netallied.xsd2Cppsax.saxfwl

Examples of de.netallied.xsd2Cppsax.saxfwl.VariableType$Factory


        String baseClass = Utils.findCorrectBaseClass(version, classType);
        stream.println("class " + className + " : public " + baseClass);
        stream.println("{");
        stream.println("private:");
        VariableType member = classType.getMember();
        stream.println(member.getType() + " " + member.getName() + ";");
        stream.println();
        stream.println("public:");
        CtorType ctor = classType.getCtor();
        VariableType ctorParameter = ctor.getParameter();
        stream.println(className + "(" + ctorParameter.getType() + " " + ctorParameter.getName() + ")");
        List<InitlistType> initList = ctor.getInitlistList();
        printInitializationList(stream, initList, classType, version);
        stream.println("{}");
        stream.println();
        stream.println();
View Full Code Here


     * Prints method parameter list.
     */
    protected void printMethodParameterList(PrintStream stream, MethodType method, SpecificType specific) {
        List<VariableType> parameterList = Utils.findCorrectParameterList(method, specific);
        for (int i = 0; i < parameterList.size(); i++) {
            VariableType para = parameterList.get(i);
            if (i == 0) {
                stream.print(" ");
            } else {
                stream.print(", ");
            }
            stream.print(para.getType() + " " + para.getName());
            if (i == parameterList.size() - 1) {
                stream.print(" ");
            }
        }
    }
View Full Code Here

            stream.println(codeLine);
        }
        stream.print("return " + classType.getMember().getName() + "->" + method.getName() + "(");
        List<VariableType> paraList = method.getParameterList();
        for (int i = 0; i < paraList.size(); i++) {
            VariableType para = paraList.get(i);
            printParaPassing(stream, i, para);
        }
        stream.println(");");

        stream.println("}");
View Full Code Here

    protected void printSaxVirtualFunctionTest(PrintStream stream, Version version, MethodType method,
            SpecificType specific) {
        stream.print("SaxVirtualFunctionTest" + version.getVersion() + "(" + specific.getName() + "(");
        List<VariableType> paraList = Utils.findCorrectParameterList(method, specific);
        for (int i = 0; i < paraList.size(); i++) {
            VariableType para = paraList.get(i);
            printParaPassing(stream, i, para);
        }
        stream.println("));");
    }
View Full Code Here

TOP

Related Classes of de.netallied.xsd2Cppsax.saxfwl.VariableType$Factory

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.