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

checker.src.org.checkerframework.checker.lock.qual.PolyGuardedBy 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
Show newest version
/*
TODO: Implement the functionality for @PolyGuardedBy and uncomment this.

package org.checkerframework.checker.lock.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.PolymorphicQualifier;

/**
 * A polymorphic qualifier for the GuardedBy type system.
 * Indicates that is unknown what the guards are or whether they are held.
 * An expression whose type is {@code @PolyGuardedBy} cannot be dereferenced.
 * Hence, unlike for @GuardSatisfied, when an expression of type {@code @PolyGuardedBy}
 * is the LHS of an assignment, the locks guarding the RHS do not need to be held.
 * 

* * Any method written using {@code @PolyGuardedBy} conceptually has an * arbitrary number of versions: one in which every instance of * {@code @PolyGuardedBy} has been replaced by {@code @}{@link GuardedByUnknown}, * one in which every instance of {@code @PolyGuardedBy} has been * replaced by {@code @}{@link GuardedByBottom}, and ones in which every * instance of {@code @PolyGuardedBy} has been replaced by {@code @}{@link GuardedBy}, * for every possible combination of map arguments. *

* * @see GuardedBy * @checker_framework.manual #lock-checker Lock Checker */ /*@PolymorphicQualifier(GuardedByUnknown.class) @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) public @interface PolyGuardedBy {}*/





© 2015 - 2024 Weber Informatics LLC | Privacy Policy