Can Eclipse auto-generate an interface of a 3rd party library class?

落爺英雄遲暮 提交于 2019-12-05 01:31:29
Dirk

Hm. Why not start with an empty class, like

class MyWrapper {

    private Referent client;
}

Then, I'd do "Source -> Generate Delegate Methods", populating the empty class with delegating calls to the underlying original object as I need them. From that class, you can now "Refactor -> Extract interface"... As you need the wrapper for production anyway, this will solve both problems (wrapper generation + interface generation) at once.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!