Exemplo n.º 1
0
 private static void appendAllAtomicExpressions(
     Vector<Expression> buildVector, Expression current) {
   if (current.getChilds() == null) {
     buildVector.add(current);
   } else {
     for (Expression e : current.getChilds()) {
       appendAllAtomicExpressions(buildVector, e);
     }
   }
 }
Exemplo n.º 2
0
 public Vector<Expression> getAllAtomicExpressions() {
   Vector<Expression> returned = new Vector<Expression>();
   appendAllAtomicExpressions(returned, this);
   return returned;
 }