Java 类org.androidannotations.annotations.EFragment 实例源码

项目:AndroidAnnotationsPermissionsDispatcherPlugin    文件:NeedsPermissionHandler.java   
@Override
protected void validate(Element element, ElementValidation validation) {
    if (validatorHelper.elementHasAnnotation(EActivity.class, element.getEnclosingElement())
            || validatorHelper.elementHasAnnotation(EFragment.class, element.getEnclosingElement())) {
        validatorHelper.isNotPrivate(element, validation);
        validatorHelper.isNotFinal(element, validation);
        validatorHelper.returnTypeIsVoid((ExecutableElement) element, validation);
    }
}