/** * Returns a textual (and quoted as needed) representation of this type for serialization, e.g. to .jimple format Replaced * by toQuotedString; only here for backwards compatibility. */ @Deprecated public String getEscapedName() { return toQuotedString(); }
/** Returns a textual representation, quoted as needed, of this type for serialization, e.g. to .jimple format */ @Override public String toQuotedString() { StringBuilder buffer = new StringBuilder(); buffer.append(baseType.toQuotedString()); for (int i = 0; i < numDimensions; i++) { buffer.append("[]"); } return buffer.toString(); }
public void type(Type t) { handleIndent(); String s = t == null ? "<null>" : t.toQuotedString(); output.append(s); }
private static String getSubSignatureImpl(String name, List<Type> params, Type returnType) { StringBuilder buffer = new StringBuilder(); buffer.append(returnType.toQuotedString()); buffer.append(" "); buffer.append(Scene.v().quotedNameOf(name)); buffer.append("("); if (params != null) { for (int i = 0; i < params.size(); i++) { buffer.append(params.get(i).toQuotedString()); if (i < params.size() - 1) { buffer.append(","); } } } buffer.append(")"); return buffer.toString(); }
private static String getSubSignature(String name, Type type) { StringBuilder buffer = new StringBuilder(); buffer.append(type.toQuotedString() + " " + Scene.v().quotedNameOf(name)); return buffer.toString(); }
private String getOriginalStyleDeclaration() { String qualifiers = Modifier.toString(modifiers) + " " + type.toQuotedString(); qualifiers = qualifiers.trim(); if (qualifiers.isEmpty()) { return Scene.v().quotedNameOf(name); } else { return qualifiers + " " + Scene.v().quotedNameOf(name) + ""; } }
buffer.append(this.getReturnType().toQuotedString() + " "); buffer.append(Scene.v().quotedNameOf(this.getName())); Type t = typeIt.next(); buffer.append(t.toQuotedString());