All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsimpledb.OnDeleteScanner Maven / Gradle / Ivy

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;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy