Decorator Generator
Is there an IDEA "Decorator Generator" plug-in?
For example, given the following interface:
interface X {
int m(int i);
}
Generate the following implementation (or something similar):
class XImpl implements X {
private X x;
public XImpl(X x) {
this.x = x;
}
public int m(int i) {
return x.m(i);
}
}
If not, is it trivial to develop?
--
Tony Morris
http://www.xdweb.net/~dibblego/
Please sign in to leave a comment.
The Delegate Methods in the Code menu will help you do this.
/Mikael