MCPcopy Create free account
hub / github.com/BaseXdb/basex / adoptCheck

Method adoptCheck

basex-core/src/main/java/org/basex/query/var/Var.java:199–203  ·  view source on GitHub ↗

Tries to adopt the given type check. @param st type to check @return true if the check could be adopted, false otherwise

(final SeqType st)

Source from the content-addressed store, hash-verified

197 * @return {@code true} if the check could be adopted, {@code false} otherwise
198 */
199 public boolean adoptCheck(final SeqType st) {
200 if(declType != null && !st.instanceOf(declType)) return declType.instanceOf(st);
201 declType = st;
202 return true;
203 }
204
205 @Override
206 public void toXml(final QueryPlan plan) {

Callers 1

optimizeMethod · 0.80

Calls 1

instanceOfMethod · 0.65

Tested by

no test coverage detected