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

Method braced

basex-core/src/main/java/org/basex/query/QueryString.java:185–191  ·  view source on GitHub ↗

Adds a braced token. @param open opening brace @param token token to be added @param close closing brace @return self reference

(final String open, final Object token, final String close)

Source from the content-addressed store, hash-verified

183 * @return self reference
184 */
185 public QueryString braced(final String open, final Object token, final String close) {
186 tb.add(open);
187 token(token);
188 final byte[] t = Token.token(close);
189 tb.add(last() == ' ' && Token.startsWith(t, ' ') ? Token.substring(t, 1) : t);
190 return this;
191 }
192
193 /**
194 * Adds a newline.

Callers 5

parenMethod · 0.95
braceMethod · 0.95
toStringMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80

Calls 6

tokenMethod · 0.95
tokenMethod · 0.95
lastMethod · 0.95
startsWithMethod · 0.95
substringMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected