MCPcopy Index your code
hub / github.com/apache/tomcat / nextToken

Method nextToken

java/org/apache/jasper/compiler/ELParser.java:330–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328 * @return The next token in the EL expression buffer.
329 */
330 private Token nextToken() {
331 prevToken = curToken;
332 if (hasNextChar()) {
333 char ch = nextChar();
334 if (Character.isJavaIdentifierStart(ch)) {
335 int start = index - 1;
336 while (index < expression.length() && Character.isJavaIdentifierPart(ch = expression.charAt(index))) {
337 nextChar();
338 }
339 return new Id(getAndResetWhiteSpace(), expression.substring(start, index));
340 }
341
342 if (ch == '\'' || ch == '"') {
343 return parseQuotedChars(ch);
344 } else {
345 // For now...
346 return new Char(getAndResetWhiteSpace(), ch);
347 }
348 }
349 return null;
350 }
351
352 /*
353 * Parse a string in single or double quotes, allowing for escape sequences '\\', '\"' and "\'"

Callers 8

parseELMethod · 0.95
parseFunctionMethod · 0.95
setJspFilesMethod · 0.45
initClassLoaderMethod · 0.45
generateClassMethod · 0.45
getPackageNameMethod · 0.45
addLoggerMethod · 0.45
readConfigurationMethod · 0.45

Calls 6

hasNextCharMethod · 0.95
nextCharMethod · 0.95
getAndResetWhiteSpaceMethod · 0.95
parseQuotedCharsMethod · 0.95
lengthMethod · 0.80
charAtMethod · 0.80

Tested by

no test coverage detected