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

org.reflections.scanners.MethodAnnotationsScanner Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package org.reflections.scanners;

import java.util.List;

@SuppressWarnings({"unchecked"})
/** scans for method's annotations */
public class MethodAnnotationsScanner extends AbstractScanner {
    public void scan(final Object cls) {
        for (Object method : getMetadataAdapter().getMethods(cls)) {
            for (String methodAnnotation : (List) getMetadataAdapter().getMethodAnnotationNames(method)) {
                if (acceptResult(methodAnnotation)) {
                    getStore().put(methodAnnotation, getMetadataAdapter().getMethodFullKey(cls, method));
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy