Examples of JStaticImports


Examples of com.envoisolutions.sxc.builder.impl.JStaticImports

        caller.addDependency(parser.getJAXBObjectClass());

        // Add a static import for the read method on the existing builder class
        String methodName = "read" + parser.getReadMethod().type().name();
        if (caller != parser) {
            JStaticImports staticImports = JStaticImports.getStaticImports(caller.getJAXBObjectClass());
            staticImports.addStaticImport(parser.getJAXBObjectClass().fullName() + "." + methodName);
        }

        // Call the static method
        JInvocation invocation = JExpr.invoke(methodName).arg(callerXsrVar).arg(caller.getReadContextVar());
        return invocation;
View Full Code Here

Examples of com.envoisolutions.sxc.builder.impl.JStaticImports

        // Declare dependency from caller to parser
        caller.addDependency(parser.getJAXBEnumClass());

        // Add a static import for the parse method on the existing builder class
        String methodName = "parse" + parser.getType().getSimpleName();
        JStaticImports staticImports = JStaticImports.getStaticImports(caller.getJAXBObjectClass());
        staticImports.addStaticImport(parser.getJAXBEnumClass().fullName() + "." + methodName);

        // Call the static method
        JInvocation invocation = JExpr.invoke(methodName).arg(callerXsrVar).arg(caller.getReadContextVar()).arg(value);
        return invocation;
    }
View Full Code Here

Examples of com.envoisolutions.sxc.builder.impl.JStaticImports

        builder.addDependency(existingBuilder.getJAXBObjectClass());

        // Add a static import for the write method on the existing builder class
        String methodName = "write" + bean.getType().getSimpleName();
        if (builder != existingBuilder) {
            JStaticImports staticImports = JStaticImports.getStaticImports(builder.getJAXBObjectClass());
            staticImports.addStaticImport(existingBuilder.getJAXBObjectClass().fullName() + "." + methodName);
        }

        // Call the static method
        JInvocation invocation = JExpr.invoke(methodName).arg(builder.getXSW()).arg(propertyVar).arg(builder.getWriteContextVar());
        block.add(invocation);
View Full Code Here

Examples of com.envoisolutions.sxc.builder.impl.JStaticImports

        // Declare dependency from caller to parser
        caller.addDependency(enumBuilder.getJAXBEnumClass());

        // Add a static import for the toString method on the existing builder class
        String methodName = "toString" + enumBuilder.getType().getSimpleName();
        JStaticImports staticImports = JStaticImports.getStaticImports(caller.getJAXBObjectClass());
        staticImports.addStaticImport(enumBuilder.getJAXBEnumClass().fullName() + "." + methodName);

        // Call the static method
        JInvocation invocation = JExpr.invoke(methodName)
                .arg(beanVar)
                .arg(parameterName)
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.