framework.src.org.checkerframework.qualframework.poly.QualifierParameterAnnotationConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker Show documentation
Show all versions of checker Show documentation
The Checker Framework enhances Java’s type system to
make it more powerful and useful. This lets software developers
detect and prevent errors in their Java programs.
The Checker Framework includes compiler plug-ins ("checkers")
that find bugs or verify their absence. It also permits you to
write your own compiler plug-ins.
package org.checkerframework.qualframework.poly;
import java.util.*;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
import org.checkerframework.qualframework.base.AnnotationConverter;
import org.checkerframework.qualframework.util.ExtendedTypeMirror;
/** An {@link AnnotationConverter} that can also find the names of all declared
* parameters on a class or method.
*/
public interface QualifierParameterAnnotationConverter extends AnnotationConverter> {
/** Get the names of all parameters declared on a class, interface, enum,
* or method declaration {@link Element}.
*
* @param elt the element to inspect for parameters
* @param declAnnotations the declaration annotations on elt
* @param type the ExtendedTypeMirror for the element, after stub file annotations have been applied
* @return the list of declared parameters
*/
Set getDeclaredParameters(Element elt, Set declAnnotations, ExtendedTypeMirror type);
}