MCPcopy Index your code
hub / github.com/beanshell/beanshell / MethodDeclaration

Method MethodDeclaration

src/bsh/Parser.java:368–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 }
367
368 final public void MethodDeclaration() throws ParseException {
369 /*@bgen(jjtree) MethodDeclaration */
370 BSHMethodDeclaration jjtn000 = new BSHMethodDeclaration(JJTMETHODDECLARATION);
371 boolean jjtc000 = true;
372 jjtree.openNodeScope(jjtn000);
373 jjtreeOpenNodeScope(jjtn000);Token t = null;
374 Modifiers mods;
375 int count;
376 try {
377 mods = Modifiers(Modifiers.METHOD, false);
378 jjtn000.modifiers = mods;
379 if (jj_2_2(2147483647)) {
380 t = jj_consume_token(IDENTIFIER);
381 jjtn000.name = t.image;
382 } else {
383 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
384 case BOOLEAN:
385 case BYTE:
386 case CHAR:
387 case DOUBLE:
388 case FLOAT:
389 case INT:
390 case LONG:
391 case SHORT:
392 case VOID:
393 case IDENTIFIER:
394 ReturnType();
395 t = jj_consume_token(IDENTIFIER);
396 jjtn000.name = t.image;
397 break;
398 default:
399 jj_la1[6] = jj_gen;
400 jj_consume_token(-1);
401 throw new ParseException();
402 }
403 }
404 FormalParameters();
405 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
406 case THROWS:
407 jj_consume_token(THROWS);
408 count = NameList();
409 jjtn000.numThrows=count;
410 break;
411 default:
412 jj_la1[7] = jj_gen;
413 ;
414 }
415 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
416 case LBRACE:
417 Block();
418 break;
419 case SEMICOLON:
420 jj_consume_token(SEMICOLON);
421 break;
422 default:
423 jj_la1[8] = jj_gen;
424 jj_consume_token(-1);
425 throw new ParseException();

Callers 1

BlockStatementMethod · 0.95

Calls 14

jjtreeOpenNodeScopeMethod · 0.95
ModifiersMethod · 0.95
jj_2_2Method · 0.95
jj_consume_tokenMethod · 0.95
jj_ntkMethod · 0.95
ReturnTypeMethod · 0.95
FormalParametersMethod · 0.95
NameListMethod · 0.95
BlockMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80

Tested by

no test coverage detected