Package org.springframework.roo.classpath.itd

Examples of org.springframework.roo.classpath.itd.InvocableMemberBodyBuilder.indent()


        final List<JavaSymbolName> parameterNames = new ArrayList<JavaSymbolName>();

        final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
        bodyBuilder.appendFormalLine("Object obj = getValue();");
        bodyBuilder.appendFormalLine("if (obj == null) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("return null;");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder
                .appendFormalLine("return (String) typeConverter.convertIfNecessary((("
View Full Code Here


                        builder.getImportRegistrationResolver());

        final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
        bodyBuilder
                .appendFormalLine("if (text == null || 0 == text.length()) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("setValue(null);");
        bodyBuilder.appendFormalLine("return;");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.newLine();
View Full Code Here

        bodyBuilder.appendFormalLine(identifierTypeName + " identifier = ("
                + identifierTypeName
                + ") typeConverter.convertIfNecessary(text, "
                + identifierTypeName + ".class);");
        bodyBuilder.appendFormalLine("if (identifier == null) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("setValue(null);");
        bodyBuilder.appendFormalLine("return;");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.newLine();
View Full Code Here

        false, builder.getImportRegistrationResolver());

    final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
    bodyBuilder.appendFormalLine("return new "
        + converterJavaType.getNameIncludingTypeParameters() + "() {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("public " + targetType.getSimpleTypeName()
        + " convert(String encodedJson) {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("return " + typeName + "."
        + jsonMethodName.getSymbolName() + "(new String(" + base64Name
View Full Code Here

    bodyBuilder.appendFormalLine("return new "
        + converterJavaType.getNameIncludingTypeParameters() + "() {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("public " + targetType.getSimpleTypeName()
        + " convert(String encodedJson) {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("return " + typeName + "."
        + jsonMethodName.getSymbolName() + "(new String(" + base64Name
        + ".decodeBase64(encodedJson)));");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
View Full Code Here

        builder.getImportRegistrationResolver());

    final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
    bodyBuilder.appendFormalLine("return new "
        + converterJavaType.getNameIncludingTypeParameters() + "() {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("public "
        + targetType.getFullyQualifiedTypeName()
        + " convert(String id) {");
    bodyBuilder.indent();
    bodyBuilder
View Full Code Here

        + converterJavaType.getNameIncludingTypeParameters() + "() {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("public "
        + targetType.getFullyQualifiedTypeName()
        + " convert(String id) {");
    bodyBuilder.indent();
    bodyBuilder
        .appendFormalLine("return getObject().convert(getObject().convert(id, "
            + idTypeName
            + ".class), "
            + targetType.getSimpleTypeName() + ".class);");
View Full Code Here

        .getSimpleTypeName());

    final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
    bodyBuilder.appendFormalLine("return new "
        + converterJavaType.getNameIncludingTypeParameters() + "() {");
    bodyBuilder.indent();
    bodyBuilder
        .appendFormalLine("public String convert("
            + targetType.getSimpleTypeName() + " " + targetTypeName
            + ") {");
    bodyBuilder.indent();
View Full Code Here

    bodyBuilder.indent();
    bodyBuilder
        .appendFormalLine("public String convert("
            + targetType.getSimpleTypeName() + " " + targetTypeName
            + ") {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("return " + base64Name
        + ".encodeBase64URLSafeString(" + targetTypeName + "."
        + jsonMethodName.getSymbolName() + "().getBytes());");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
View Full Code Here

        .getSimpleTypeName());

    final InvocableMemberBodyBuilder bodyBuilder = new InvocableMemberBodyBuilder();
    bodyBuilder.appendFormalLine("return new "
        + converterJavaType.getNameIncludingTypeParameters() + "() {");
    bodyBuilder.indent();
    bodyBuilder
        .appendFormalLine("public String convert("
            + targetType.getSimpleTypeName() + " " + targetTypeName
            + ") {");
    bodyBuilder.indent();
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.