@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface JsAccessible
JsAccessible
can be accessed from
JavaScript. For example:
Public top level class:
public final class TopClass { @JsAccessible public void method() {} }
Public static nested class:
public final class TopClass { public static class NestedClass { @JsAccessible public void method() {} } }