Java Code Examples for org.jf.util.StringUtils#writeEscapedString()

The following examples show how to use org.jf.util.StringUtils#writeEscapedString() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: ZjDroid   File: SetSourceFileMethodItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write(".source");

    if (sourceFile != null) {
        writer.write(" \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write('"');
    }
    return true;
}
 
Example 2
Source Project: ZjDroid   File: ClassDefinition.java    License: Apache License 2.0 5 votes vote down vote up
private void writeSourceFile(IndentingWriter writer) throws IOException {
    String sourceFile = classDef.getSourceFile();
    if (sourceFile != null) {
        writer.write(".source \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write("\"\n");
    }
}
 
Example 3
Source Project: atlas   File: SetSourceFileMethodItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write(".source");

    if (sourceFile != null) {
        writer.write(" \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write('"');
    }
    return true;
}
 
Example 4
Source Project: atlas   File: ClassDefinition.java    License: Apache License 2.0 5 votes vote down vote up
private void writeSourceFile(IndentingWriter writer) throws IOException {
    String sourceFile = classDef.getSourceFile();
    if (sourceFile != null) {
        writer.write(".source \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write("\"\n");
    }
}
 
Example 5
Source Project: zjdroid   File: SetSourceFileMethodItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write(".source");

    if (sourceFile != null) {
        writer.write(" \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write('"');
    }
    return true;
}
 
Example 6
Source Project: zjdroid   File: ClassDefinition.java    License: Apache License 2.0 5 votes vote down vote up
private void writeSourceFile(IndentingWriter writer) throws IOException {
    String sourceFile = classDef.getSourceFile();
    if (sourceFile != null) {
        writer.write(".source \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write("\"\n");
    }
}
 
Example 7
Source Project: HeyGirl   File: SetSourceFileMethodItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write(".source");

    if (sourceFile != null) {
        writer.write(" \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write('"');
    }
    return true;
}
 
Example 8
Source Project: HeyGirl   File: ClassDefinition.java    License: Apache License 2.0 5 votes vote down vote up
private void writeSourceFile(IndentingWriter writer) throws IOException {
    String sourceFile = classDef.getSourceFile();
    if (sourceFile != null) {
        writer.write(".source \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write("\"\n");
    }
}
 
Example 9
Source Project: ZjDroid   File: SetSourceFileMethodItem.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean writeTo(IndentingWriter writer) throws IOException {
    writer.write(".source");

    if (sourceFile != null) {
        writer.write(" \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write('"');
    }
    return true;
}
 
Example 10
Source Project: ZjDroid   File: ClassDefinition.java    License: Apache License 2.0 5 votes vote down vote up
private void writeSourceFile(IndentingWriter writer) throws IOException {
    String sourceFile = classDef.getSourceFile();
    if (sourceFile != null) {
        writer.write(".source \"");
        StringUtils.writeEscapedString(writer, sourceFile);
        writer.write("\"\n");
    }
}
 
Example 11
Source Project: ZjDroid   File: ReferenceFormatter.java    License: Apache License 2.0 4 votes vote down vote up
public static void writeStringReference(IndentingWriter writer, String item) throws IOException {
    writer.write('"');
    StringUtils.writeEscapedString(writer, item);
    writer.write('"');
}
 
Example 12
Source Project: atlas   File: ReferenceFormatter.java    License: Apache License 2.0 4 votes vote down vote up
public static void writeStringReference(IndentingWriter writer, String item) throws IOException {
    writer.write('"');
    StringUtils.writeEscapedString(writer, item);
    writer.write('"');
}
 
Example 13
Source Project: zjdroid   File: ReferenceFormatter.java    License: Apache License 2.0 4 votes vote down vote up
public static void writeStringReference(IndentingWriter writer, String item) throws IOException {
    writer.write('"');
    StringUtils.writeEscapedString(writer, item);
    writer.write('"');
}
 
Example 14
Source Project: HeyGirl   File: ReferenceFormatter.java    License: Apache License 2.0 4 votes vote down vote up
public static void writeStringReference(IndentingWriter writer, String item) throws IOException {
    writer.write('"');
    StringUtils.writeEscapedString(writer, item);
    writer.write('"');
}
 
Example 15
Source Project: ZjDroid   File: ReferenceFormatter.java    License: Apache License 2.0 4 votes vote down vote up
public static void writeStringReference(IndentingWriter writer, String item) throws IOException {
    writer.write('"');
    StringUtils.writeEscapedString(writer, item);
    writer.write('"');
}