Examples of indentRemove()


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

        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((("
                        + javaType.getNameIncludingTypeParameters(false,
                                builder.getImportRegistrationResolver())
View Full Code Here

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

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

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

                + identifierTypeName + ".class);");
        bodyBuilder.appendFormalLine("if (identifier == null) {");
        bodyBuilder.indent();
        bodyBuilder.appendFormalLine("setValue(null);");
        bodyBuilder.appendFormalLine("return;");
        bodyBuilder.indentRemove();
        bodyBuilder.appendFormalLine("}");
        bodyBuilder.newLine();
        bodyBuilder.appendFormalLine("setValue("
                + javaType.getNameIncludingTypeParameters(false,
                        builder.getImportRegistrationResolver()) + "."
View Full Code Here

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

        + " convert(String encodedJson) {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("return " + typeName + "."
        + jsonMethodName.getSymbolName() + "(new String(" + base64Name
        + ".decodeBase64(encodedJson)));");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
View Full Code Here

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

    bodyBuilder.appendFormalLine("return " + typeName + "."
        + jsonMethodName.getSymbolName() + "(new String(" + base64Name
        + ".decodeBase64(encodedJson)));");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
        converterJavaType, bodyBuilder);
  }
View Full Code Here

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

    bodyBuilder
        .appendFormalLine("return getObject().convert(getObject().convert(id, "
            + idTypeName
            + ".class), "
            + targetType.getSimpleTypeName() + ".class);");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
View Full Code Here

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

            + idTypeName
            + ".class), "
            + targetType.getSimpleTypeName() + ".class);");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
        converterJavaType, bodyBuilder);
  }
View Full Code Here

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

            + ") {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine("return " + base64Name
        + ".encodeBase64URLSafeString(" + targetTypeName + "."
        + jsonMethodName.getSymbolName() + "().getBytes());");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
View Full Code Here

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

    bodyBuilder.appendFormalLine("return " + base64Name
        + ".encodeBase64URLSafeString(" + targetTypeName + "."
        + jsonMethodName.getSymbolName() + "().getBytes());");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
        converterJavaType, bodyBuilder);
  }
View Full Code Here

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

            + targetType.getSimpleTypeName() + " " + targetTypeName
            + ") {");
    bodyBuilder.indent();
    bodyBuilder.appendFormalLine(getTypeToStringLine(targetType,
        targetTypeName, toStringMethods));
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("}");
    bodyBuilder.indentRemove();
    bodyBuilder.appendFormalLine("};");

    return new MethodMetadataBuilder(getId(), Modifier.PUBLIC, methodName,
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.