Logo Search packages:      
Sourcecode: janino version File versions  Download package

boolean org::codehaus::janino::SimpleCompiler::equals ( Object  o  )  [inline]

Two SimpleCompilers are regarded equal iff

Definition at line 339 of file SimpleCompiler.java.

References result.

Referenced by org::codehaus::janino::ScriptEvaluator::cook().

        if (!(o instanceof SimpleCompiler)) return false;
        SimpleCompiler that = (SimpleCompiler) o;
        if (this.getClass() != that.getClass()) return false;
        if (this.result == null || that.result == null) throw new IllegalStateException("Equality can only be checked after cooking");
        return this.result.equals(that.result);

Generated by  Doxygen 1.6.0   Back to index