Skip to content

Pityubak/PojoGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PojoGenerator

This is annotation processor. Maybe it is redundant and unneccesary, but my goal was a deeper understanding and learning, not a creating of "something useful".

How it works?

Source file:

@Pojo
public class Person {
    private String name;
    private int age;

}

Generated file:

public class PersonPojo {
  private String name;

  private int age;

  public PersonPojo(String name, int age) {
    this.name=name;
    this.age=age;
  }

  public String getName() {
    return name;
  }

  public int getAge() {
    return age;
  }

  public void setName(String name) {
    this.name=name;
  }

  public void setAge(int age) {
    this.age=age;
  }
}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages