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

Method toString

basex-core/src/main/java/org/basex/query/expr/IntPos.java:132–144  ·  view source on GitHub ↗
(final QueryString qs)

Source from the content-addressed store, hash-verified

130 }
131
132 @Override
133 public void toString(final QueryString qs) {
134 qs.function(Function.POSITION);
135 if(exact()) {
136 qs.token("=").token(min);
137 } else if(max == MAX_VALUE) {
138 qs.token(">=").token(min);
139 } else if(min == 1) {
140 qs.token("<=").token(max);
141 } else {
142 qs.token("=").token(min).token(TO).token(max);
143 }
144 }
145}

Callers

nothing calls this directly

Calls 3

exactMethod · 0.95
tokenMethod · 0.65
functionMethod · 0.45

Tested by

no test coverage detected