org.jsimpledb.OnValidateScanner Maven / Gradle / Ivy
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb;
import java.lang.reflect.Method;
import org.jsimpledb.annotation.OnValidate;
/**
* Scans for {@link OnValidate @OnValidate} annotations.
*/
class OnValidateScanner extends AnnotationScanner {
OnValidateScanner(JClass jclass) {
super(jclass, OnValidate.class);
}
@Override
protected boolean includeMethod(Method method, OnValidate annotation) {
this.checkNotStatic(method);
this.checkReturnType(method, void.class);
this.checkParameterTypes(method);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy