title: making a condition from a pattern
body: <p>I have a table which contains following columns</p>
  
  <pre><code>dependentColumn : values table1.column2, table1.column3, table3.column4....
  
  condition : values ([table1.column2.LAST3][=ABC][OR][=DEF]),
      ([table1.column2.ALL][=ABC]), 
      (([table1.column2][=ABC][OR][table1.column2][!="DEF"])[AND]
          ([table1.column2][!="DEF"]))
   ...
  
  values: abc, [table1.column1.LAST3]  
  </code></pre>
  
  <p>Now I need to parse the values contained in condition column and write a code containg the conditions and put the values to the dependentColumns</p>
  
  <p>My concern is making java conditions from the conditions mentioned in the 'condition' column. conditions are stored in a pattern. there can be  multiple conditions whith ANDs and ORs. How do I tackel the problem. I Know its possible but I am a bit confused.Can I use Stack Class, tyhough I have not used it before.</p>
  
  <p>If there is a simple way out to the solution please tell me</p>