Method
simplifyFor
(final Simplify mode, final CompileContext cc)
Source from the content-addressed store, hash-verified
| 312 | } |
| 313 | |
| 314 | @Override |
| 315 | public final Expr simplifyFor(final Simplify mode, final CompileContext cc) |
| 316 | throws QueryException { |
| 317 | // E[node-name() = #a] → E[self::a] |
| 318 | final Expr ex = mode.oneOf(Simplify.EBV, Simplify.PREDICATE) ? optPred(cc) : this; |
| 319 | return cc.simplify(this, ex, mode); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * Optimizes this expression as predicate. |
Callers
nothing calls this directly
Tested by
no test coverage detected