boolean run = target == null || isExecuted(method.getMethod(), target);
return run ? base : EmptyStatement.DEFAULT;
}
private boolean isExecuted(Method method, Target target) {
ExcludeIn ex = method.getAnnotation(ExcludeIn.class);
if (ex == null) {
ex = method.getDeclaringClass().getAnnotation(ExcludeIn.class);
}
// excluded in given targets
if (ex != null && Arrays.asList(ex.value()).contains(target)) {
return false;
}
// included only in given targets
IncludeIn in = method.getAnnotation(IncludeIn.class);
if (in == null) {