use of org.androidannotations.annotations.OnActivityResult in project androidannotations by androidannotations.
the class OnActivityResultHandler method validate.
@Override
public void validate(Element element, ElementValidation validation) {
validatorHelper.enclosingElementHasEActivityOrEFragment(element, validation);
validatorHelper.isNotPrivate(element, validation);
validatorHelper.doesntThrowException(element, validation);
OnActivityResult onResultAnnotation = element.getAnnotation(OnActivityResult.class);
validatorHelper.annotationValuePositiveAndInAShort(onResultAnnotation.value(), validation);
ExecutableElement executableElement = (ExecutableElement) element;
validatorHelper.returnTypeIsVoid(executableElement, validation);
//
validatorHelper.param.anyOrder().type(CanonicalNameConstants.INTENT).optional().primitiveOrWrapper(TypeKind.INT).optional().annotatedWith(OnActivityResult.Extra.class).multiple().optional().validate((ExecutableElement) element, //
validation);
}
Aggregations