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

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

The newest version!
package org.checkerframework.common.reflection.qual;

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;
import org.checkerframework.framework.qual.SubtypeOf;

/**
 * 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