I have a class with some methods in Java as follows:
public class Class1
{
private String a;
private String b;
public setA(String a_){
this.a = a_;
}
public setb(String b_){
this.b = b_;
}
public String getA(){
return a;
}
@JsonIgnore
public String getb(){
return b;
}
}
I want to get all methods in Class1
that start with the String get
which are not declared with the @JsonIgnore
annotation.
How do I do this?