This is a utility method that gets the list of elements
that should be evaluated in the context. If $this->findAnyElement
is TRUE, this will return a list of every element that appears in
the subtree of $this->matches. Otherwise, it will just return
$this->matches.