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

public @Interface EnsuresCalledMethodsVarArgs

extends Annotation
Annotations
@Target:METHOD, CONSTRUCTOR
Imports
java.lang.annotation.ElementType, .Target

Indicates that the method, if it terminates successfully, always invokes the given methods on all of the arguments passed in the varargs position.

Consider the following method:

@EnsuresCalledMethodsVarArgs("m")
public void callMOnAll(S s, T t...) { ... }

This method guarantees that m() is always called on every T object passed in the t varargs argument before the method returns.

This annotation is not checked. An error will always be issued when it is used.

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

the methods guaranteed to be invoked on the varargs parameters
value
()

Returns the methods guaranteed to be invoked on the varargs parameters.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String[] value()

Returns the methods guaranteed to be invoked on the varargs parameters.

Returns:String[]

the methods guaranteed to be invoked on the varargs parameters