Exemple #1
0
 private List<AssignmentExpression> toAssignments(List<ExpressionItem> items) {
   List<AssignmentExpression> ret = new ArrayList<AssignmentExpression>();
   if (items != null) {
     for (ExpressionItem item : items) {
       ret.add((AssignmentExpression) item);
     }
   }
   return ret;
 }
Exemple #2
0
 private List<ExpressionItem> parseExpressions(List<String> lines) throws Exception {
   if (lines == null) {
     return null;
   }
   List<ExpressionItem> items = new ArrayList<ExpressionItem>();
   for (String line : lines) {
     items.add(Expressions.parse(line));
   }
   return items;
 }