private String getReplaceStatement(
            String statement,
            int line,
            String name,
            String className,
            String fileName) {
        fileName = fileName == null ? "unknown" : fileName;
        className = className == null ? "unknown" : className;
        name = name == null ? "unknown" : name;
        statement = statement.replaceAll(
                Pattern.quote("$class"), Matcher.quoteReplacement(className));
        statement = statement.replaceAll(
                Pattern.quote("$line"), Matcher.quoteReplacement(String.valueOf(line)));
        statement = statement.replaceAll(
                Pattern.quote("$name"), Matcher.quoteReplacement(name));
        statement = statement.replaceAll(
                Pattern.quote("$file"), Matcher.quoteReplacement(fileName));
        return statement;
    }
Replace placeholders with actual values

<pre>$class</pre> represents class name
<pre>$line</pre> represents line number
<pre>$name</pre> represents method name or field name
<pre>$file</pre> represents file name
plugin/src/main/groovy/com/didichuxing/tools/droidassist/transform/SourceTargetTransformer.java