Top Description Methods
org.checkerframework.checker.calledmethods.qual

public @Interface CalledMethods

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE_USE, TYPE_PARAMETER
@SubtypeOf
@DefaultQualifierInHierarchy
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, org.checkerframework.framework.qual.DefaultQualifierInHierarchy, .SubtypeOf

If an expression has type @CalledMethods({"m1", "m2"}), then methods m1 and m2 have definitely been called on its value. Other methods might or might not have been called. "Been called" is defined as having been invoked: a method has "been called" even if it might never return or might throw an exception.

The subtyping relationship is:

@CalledMethods({"m1", "m2", "m3"}) <: @CalledMethods({"m1", "m2"})

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

methods that have definitely been called
value
()

Methods that have definitely been called on the expression whose type is annotated.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String[] value()

Methods that have definitely been called on the expression whose type is annotated.

Returns:String[]

methods that have definitely been called