of

public static AllowImportAttribute of(Method method)

Obtains the value of this attribute for a method.

The passed method must be an event applier.

Return

the value of AllowImportAttribute for the given Method

Parameters

method

the method to inspect

Throws

if the passed method is not properly annotated