package cn.cerc.mis.client;

public final class ServiceSign {
    private String id;
    private String site;

    public ServiceSign(String id) {
        super();
        this.id = id;
    }

    public ServiceSign(String id, String site) {
        super();
        this.id = id;
        this.site = site;
    }

    public String id() {
        return id;
    }

    public String site() {
        return this.site;
    }

}

@@ -22,16 +22,168 @@
 lient;%0A%0A
+import java.lang.reflect.Method;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport cn.cerc.db.core.ClassData;%0Aimport cn.cerc.db.core.DataSet;%0A%0A
 public f
@@ -570,10 +570,1551 @@
 %0A    %7D%0A%0A
+    public static void buildSourceCode(Class%3C?%3E clazz) %7B%0A        final String fmt = %22public static final ServiceSign %25s = new ServiceSign(%5C%22%25s.%25s%5C%22);%22;%0A        System.out.println(String.format(%22public static class %25s %7B%22, clazz.getSimpleName()));%0A        List%3CString%3E items = new ArrayList%3C%3E();%0A        for (Method method : clazz.getDeclaredMethods()) %7B%0A            if (method.getModifiers() != ClassData.PUBLIC)%0A                continue;%0A            if (method.getReturnType() == boolean.class && method.getParameterCount() == 0)%0A                items.add(method.getName());%0A        %7D%0A        if (items.size() %3E 0) %7B%0A            items.sort((t1, t2) -%3E t1.toLowerCase().compareTo(t2.toLowerCase()));%0A            System.out.println(%22// version 1%22);%0A            for (String item : items)%0A                System.out.println(String.format(fmt, item, clazz.getSimpleName(), item));%0A        %7D%0A        items.clear();%0A        for (Method method : clazz.getDeclaredMethods()) %7B%0A            if (method.getModifiers() != ClassData.PUBLIC)%0A                continue;%0A            if (method.getReturnType() == DataSet.class && method.getParameterCount() == 2)%0A                items.add(method.getName());%0A        %7D%0A        if (items.size() %3E 0) %7B%0A            items.sort((t1, t2) -%3E t1.toLowerCase().compareTo(t2.toLowerCase()));%0A            System.out.println(%22// version 2%22);%0A            for (String item : items)%0A                System.out.println(String.format(fmt, item, clazz.getSimpleName(), item));%0A        %7D%0A        System.out.println(%22%7D%22);%0A    %7D%0A%0A
 %7D%0A

Update ServiceSign.java