I need to check, form super class, if derived class have a specific annotation:
public class SuperClass
{
public boolean hasAnnotation()
{
//super_class_method_code
}
}
@annotationToCheck
public class DerivedClass extends SuperClass
{
//derived_class_code
}
It is possible in Java? I know how to do in C# but in Java I can't find any solution... :(
Thank you!!!