class WebViewJavascriptInterfaceDetector extends OpcodeStackDetector {

    private static final String ANDROID_WEB_VIEW_INTERFACE_TYPE = "ANDROID_WEB_VIEW_JAVASCRIPT_INTERFACE";
    private BugReporter bugReporter;

    public WebViewJavascriptInterfaceDetector(BugReporter bugReporter) {
        this.bugReporter = bugReporter;
    }

    @Override
    public void sawOpcode(int seen) {<FILL_FUNCTION_BODY>}
}


        if (seen == Const.INVOKEVIRTUAL && getClassConstantOperand().equals("android/webkit/WebView") &&
                getNameConstantOperand().equals("addJavascriptInterface")) {

            bugReporter.reportBug(new BugInstance(this, ANDROID_WEB_VIEW_INTERFACE_TYPE, Priorities.NORMAL_PRIORITY) //
                    .addClass(this).addMethod(this).addSourceLine(this));
        }

    
<no_super_class>