Some basic analysis of what needs to be done to fix JENA-494 added as comments

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562536 13f79535-47bb-0310-9956-ffa450edef68
Add Andy's additional example from JENA-627

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562575 13f79535-47bb-0310-9956-ffa450edef68
Handle case of (filter) with no change properly.
Refactor placement for union to use general transform step.


git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562612 13f79535-47bb-0310-9956-ffa450edef68
Change tests where order of exprlists has changed due to refactoring.

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562614 13f79535-47bb-0310-9956-ffa450edef68
Correct javadoc formatting.

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562623 13f79535-47bb-0310-9956-ffa450edef68
Add an experimental ExprTransformConstantFold which is an expression transformer that folds constants to simplify expressions (JENA-630)

This commit includes a change to ExprFunctionN to make the copy() method public to align with the other ExprFunction classes e.g. ExprFunction1.  It also fixes the logic for copySubstitute() for this class to try and fold the whole expression where possible.

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562658 13f79535-47bb-0310-9956-ffa450edef68
Align SecuredFunction with JENA-630 changes

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562667 13f79535-47bb-0310-9956-ffa450edef68
Remove unused import

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562745 13f79535-47bb-0310-9956-ffa450edef68
Remove warning about unused imports.

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562753 13f79535-47bb-0310-9956-ffa450edef68
Cleanup and review for JENA-627.

.buildFilter:
   Remove unnecessary use of .remove
.insertAnyFilter:
   Comment that it modifies the content of the Expr list passed in.
   All callers take an outer copy before use of insertAnyFilter in a loop.
  

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1562754 13f79535-47bb-0310-9956-ffa450edef68
Naive but effective fix for JENA-494 which should work for most cases.

Essentially compares the visible variables in the original algebra vs the rename reversed algebra to determine if a remapping of variable names is necessary.  When it is it wraps the query iterator returned with a special variable remapping query iterator.

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1563376 13f79535-47bb-0310-9956-ffa450edef68
In-memory, named Locations.

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1563689 13f79535-47bb-0310-9956-ffa450edef68