title: JAVA dynamic attributes condition evaluation
body: <p>I have a use case where a Object is present with a string having a condition for evaluation against another object's attributes.
  E.g. 
  <code>StudentEvaluator</code> has condition </p>
  
  <pre><code>student.pastScore&gt;70 &amp;&amp; student.currentScore&gt;90 &amp;&amp; student.sportsParticipation=true
  </code></pre>
  
  <p>And <code>Student</code> object has the respective attributes. </p>
  
  <pre><code>E.g. pastScore, currentScore and sportsParticipation
  </code></pre>
  
  <p>Now the <code>StudentEvaluator</code> condition string is created at runtime and has to evaluated for true or false. 
  There are a number of StudentEvaluators running in parallel with different conditions.
  Now the StudentEvaluator accepts a student argument in its evaluating function and evaluates the condition.
  i.e.</p>
  
  <pre><code>public Class StudentEvaluator{
  
  String condition;
  
    public StudentEvaluator(String condition){
      this.condition = condition;
    }
  
    evaluate(Student student){
      &lt;&lt;Code&gt;&gt;
    }
  
  }
  </code></pre>
  
  <p>What would be the most efficient way of <strong>evaluation</strong>?
  Any out of the box ideas are welcome! :)</p>