81,122
社区成员




Method methods = Entity.getClass().getMethods();
c = Class.forName(xx.class.getName());
Method [] method = c.getDeclaredMethods();
for(Method m : method){
if(m.getName().startsWith("get")){
System.out.println(m.getName());
}
}
c = Class.forName(xx.class.getName());
Method [] method = c.getDeclaredMethods();
for(Method m : method){
if(m.getName().indexOf("get")!=-1){
System.out.println(m.getName());
}
}