怎样把一个package下的所有class列出来啊.docVIP

  • 6
  • 0
  • 约1.2万字
  • 约 11页
  • 2016-11-28 发布于河南
  • 举报

怎样把一个package下的所有class列出来啊.doc

怎样把一个package下的所有class列出来啊

1.怎样把一个package下的所有class列出来啊? Copy to clipboard Posted by: xxrong Posted on: 2005-04-19 10:17 I want to perform a test over all class in package com.mytest. All class in this class extends the same super class. This is my idea: for(each class clazz in packagecom.mytest){ SuperClass sobjct=clazz.newInstant(); Method m=sobjct.getMethod(test,...); //invoke test(...) sobject.invoke(...); } How can I do this? 2.Re:怎样把一个package下的所有class列出来啊? [Re: xxrong] Copy to clipboard Posted by: 凤舞凰扬 Posted on: 2005-04-22 16:32 I think you should know the naming rule about java class. You can get the fi

文档评论(0)

1亿VIP精品文档

相关文档