Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto generate get and set functions for objects

Status
Not open for further replies.

houen

Programmer
Dec 29, 2007
3
DK
I have created a site to ease the development of good object oriented code by automatically generating get and set functions


Simply paste in your instance variables and it will respond with get and set functions. It supports Java, C#, PHP, Flash and C++.

Java example:
insert

private int numusers


generates


//-------------QUERIES-------------
public int getNumusers() {
return this.numusers;
}
//-------------COMMANDS------------
public void setNumusers(int numusers) {
this.numusers = numusers;
}


Whether you want camelCase or under_score in the function name is up to you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top