/** * Traverses the given expression and returns the references that were found. * * @param expression the expression from which to fetch references * @return the references that have been fetched */ public SortedSet<Reference> getReferences(Expression expression) { references = new TreeSet<Reference>(); expression.accept(this); return references; }