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

Method ncName

basex-core/src/main/java/org/basex/query/QueryParser.java:4412–4417  ·  view source on GitHub ↗

Parses the "NCName" rule. @param error optional error message @param qnmPfx allow NCName as a QName prefix @return name (empty if no token was found) @throws QueryException query exception

(final QueryError error, final boolean qnmPfx)

Source from the content-addressed store, hash-verified

4410 * @throws QueryException query exception
4411 */
4412 private byte[] ncName(final QueryError error, final boolean qnmPfx) throws QueryException {
4413 token.reset();
4414 if(ncName(qnmPfx)) return token.toArray();
4415 if(error != null) throw error(error, currentAsString());
4416 return EMPTY;
4417 }
4418
4419 /**
4420 * Parses the "EQName" rule.

Callers 15

parseLibraryMethod · 0.95
namespaceDeclMethod · 0.95
decimalFormatDeclMethod · 0.95
schemaImportMethod · 0.95
moduleImportMethod · 0.95
namedRecordTypeDeclMethod · 0.95
simpleNodeTestMethod · 0.95
methodCallMethod · 0.95
keySpecifierMethod · 0.95
dirPIMethod · 0.95
compNameMethod · 0.95
jnodeTestMethod · 0.95

Calls 11

errorMethod · 0.95
isNCStartCharMethod · 0.95
isNCCharMethod · 0.95
resetMethod · 0.65
addMethod · 0.65
nextMethod · 0.65
toArrayMethod · 0.45
currentAsStringMethod · 0.45
currentMethod · 0.45
consumeMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected