Feature Overview
This feature adds support for custom annotation on classes.
This feature adds support for custom annotation on classes.
None
@MyAnnotation(name='Test')
public class AnnotationDemo {
public @interface MyAnnotation {
public String name();
public Integer number() default 10;
}
}
public class AnnotationDemo {
public class MyAnnotation {
private String m_name;
private Integer m_number = 10;
public MyAnnotation name(String m_name) {
this.m_name = m_name;
return this;
}
public String name() {
return this.m_name;
}
public MyAnnotation number(Integer m_number) {
this.m_number = m_number;
return this;
}
public Integer number() {
return this.m_number;
}
}
}
public class SweetAnnotations implements Sweet.Annotations {
private final Map> annotations = new Map>();
public List