title: Using private class as Javascript interface
body: <p>Is it possible to use private inner class, as Javascript interface for <code>WebView</code>?</p>
  
  <pre><code>public class WebController{
  
      private WebView wv;
      public WebController(WebView wv){
          this.wv=wv;
          this.wv.addJavascriptInterface(new JSInterface(), "Android");
      }
  
      private class JSInterface{
  
          void someMethod(){ /* ... */ }        
  
      }
  
  }
  </code></pre>