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); } } }
public Vector<Expression> getAllAtomicExpressions() { Vector<Expression> returned = new Vector<Expression>(); appendAllAtomicExpressions(returned, this); return returned; }