public void createFullQualifiedSignature(StringBuffer buffer, FieldDeclaration field) { // ma: removed modifiers since they require an adaptation of the // get/set advice otherwise // buffer.append(field.getModifiers()).append(' '); getFullQualifiedNameInt(buffer, field.type()); buffer.append(' '); getFullQualifiedNameInt(buffer, field.hostType()); buffer.append('.'); buffer.append(field.getID()); }
public String createFullQualifiedSignature(MethodDecl method) { StringBuffer buffer = new StringBuffer(); buffer.append(method.getModifiers()).append(' '); getFullQualifiedNameInt(buffer, method.type()); buffer.append(' '); getFullQualifiedNameInt(buffer, method.hostType()); buffer.append('.'); buffer.append(method.signature()); return buffer.toString(); }
private void getFullQualifiedNameInt(StringBuffer buffer, TypeDecl type) { if (!type.isPrimitiveType() && !type.isVoid()) buffer.append(type.packageName()).append('.'); buffer.append(type.name()); }