Returns a new optimized step. @param cc compilation context @param root root context expression; if null, the current context will be used @param info input info (can be null) @param axis axis @param test test @param preds predicates @return step or empty sequence @throws QueryExcept
(final CompileContext cc, final Expr root, final InputInfo info,
final Axis axis, final Test test, final Expr... preds)
| 75 | * @throws QueryException query exception |
| 76 | */ |
| 77 | public static Expr get(final CompileContext cc, final Expr root, final InputInfo info, |
| 78 | final Axis axis, final Test test, final Expr... preds) throws QueryException { |
| 79 | return new CachedStep(info, axis, test, preds).optimize(root, cc); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Returns a new step. |
no test coverage detected