com.atlassian.clover.api.registry.ModifiersInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clover Show documentation
Show all versions of clover Show documentation
OpenClover is an award-winning code coverage and testing tool for Java and Groovy.
It integrates easily with Maven, Ant, Grails, Eclipse and IntelliJ IDEA
as well as with continuous integration servers such as Bamboo, Jenkins or Hudson.
package com.atlassian.clover.api.registry;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
import java.util.Map;
public interface ModifiersInfo {
int getMask();
/**
* Returns one (or more - introduced in Java 8) annotations with a given name.
*
* @param name name of the annotation to search
* @return Collection<Annotation> list of annotations with that name or empty list if not found
*/
@NotNull
public Collection getAnnotation(@NotNull String name);
/**
* Returns a multi-map of all annotations - one key (annotation name) may contain mutliple values
* (i.e. multiple occurrences of the annotation, usually with different attributes)
*
* @return Map<String, Collection<Annotation>> - map(name, annotations)
*/
@NotNull
public Map> getAnnotations();
}