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

org.checkerframework.common.reflection.qual.MethodVal Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.42.0-eisop4
Show newest version
package org.checkerframework.common.reflection.qual;

import org.checkerframework.framework.qual.SubtypeOf;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This represents a set of {@link java.lang.reflect.Method Method} or {@link
 * java.lang.reflect.Constructor Constructor} values. If an expression's type has
 * {@code @MethodVal}, then the expression's run-time value is one of those values.
 *
 * 

Each of {@code @MethodVal}'s argument lists must be of equal length, and { className[i], * methodName[i], params[i] } represents one of the {@code Method} or {@code Constructor} values in * the set. * * @checker_framework.manual #methodval-and-classval-checkers MethodVal Checker */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @SubtypeOf({UnknownMethod.class}) public @interface MethodVal { /** * The binary * name of the class that declares this method. */ String[] className(); /** * The name of the method that this Method object represents. Use {@code } for * constructors. */ String[] methodName(); /** The number of parameters to the method. */ int[] params(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy