org.jsimpledb.OnDeleteScanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-main Show documentation
Show all versions of jsimpledb-main Show documentation
JSimpleDB classes that map Java model classes onto the core API.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb;
import java.lang.reflect.Method;
import org.jsimpledb.annotation.OnDelete;
/**
* Scans for {@link OnDelete @OnDelete} annotations.
*/
class OnDeleteScanner extends AnnotationScanner {
OnDeleteScanner(JClass jclass) {
super(jclass, OnDelete.class);
}
@Override
protected boolean includeMethod(Method method, OnDelete annotation) {
this.checkNotStatic(method);
this.checkReturnType(method, void.class);
this.checkParameterTypes(method);
return true;
}
}