@prime current urgent !!
if in a class :
@Using(Handler.class,Data.class)
public class View extends Widget{}
suppose Using annotation will expand it to
public class View extends Widget{
Handler handler;
Data data; // here is the added attribute by "Using" annotation
View(Handler handler, Data data) {
this.handler=handler;
this.data=v;
}
}
------ My Question ------
when i am doing my logic in View class here
@Using(Handler.class,Data.class)
public class View extends Widget{
// example
private void foo(){
// using data attributes generated by "Using" annotation
System.Out.println(data.name);
}
}
can i use the attributes handler and data that the annotation generates ?