class SpelViewDetector extends OpcodeStackDetector {

    private BugReporter bugReporter;

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

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

        //printOpCode(seen);
        if(seen == INVOKESPECIAL) {
            String methodName = getNameConstantOperand();
            String className = getClassConstantOperand();

            if (methodName.equals("<init>") && className.toLowerCase().endsWith("spelview")) { //Constructor named SpelView()

                bugReporter.reportBug(new BugInstance(this, "SPEL_INJECTION", Priorities.NORMAL_PRIORITY) //
                        .addClass(this).addMethod(this).addSourceLine(this).addString("SpelView()"));
            }
        }
    
<no_super_class>