DD.
DD.

Reputation: 21991

Eclipse Generate All getters setters in package

Is there a way to generate all getters and setters in an entire package in eclipse? Thanks.

Upvotes: 2

Views: 358

Answers (2)

dreadwail
dreadwail

Reputation: 15409

Generating getters and setters on everything in an entire package seems like a very bad idea. Not everything should be accessible or modifiable. Good OO design includes knowing when to encapsulate by keeping some things private.

That said, you might already know this. If you're looking to do this for some academic exercise, feel free to disregard.

Upvotes: 0

Andrew Aylett
Andrew Aylett

Reputation: 40710

Assuming you're using Java, you may want to take a look at Project Lombok.

Upvotes: 2

Related Questions