langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolOption.java
equal
deleted
inserted
replaced
357 J("-J", STANDARD, true) { |
357 J("-J", STANDARD, true) { |
358 @Override |
358 @Override |
359 public void process(Helper helper) { |
359 public void process(Helper helper) { |
360 throw new AssertionError("the -J flag should be caught by the launcher."); |
360 throw new AssertionError("the -J flag should be caught by the launcher."); |
361 } |
361 } |
|
362 }, |
|
363 |
|
364 VERSION("--version", STANDARD) { |
|
365 @Override |
|
366 public void process(Helper helper) throws OptionException { |
|
367 throw new OptionException(OK, helper::version); |
|
368 } |
|
369 }, |
|
370 |
|
371 FULLVERSION("--full-version", HIDDEN) { |
|
372 @Override |
|
373 public void process(Helper helper) throws OptionException { |
|
374 throw new OptionException(OK, helper::fullVersion); |
|
375 } |
362 }; |
376 }; |
363 |
377 |
364 public final String primaryName; |
378 public final String primaryName; |
365 public final List<String> names; |
379 public final List<String> names; |
366 public final OptionKind kind; |
380 public final OptionKind kind; |
453 populateDefaultAccessMap(); |
467 populateDefaultAccessMap(); |
454 } |
468 } |
455 |
469 |
456 abstract void usage(); |
470 abstract void usage(); |
457 abstract void Xusage(); |
471 abstract void Xusage(); |
|
472 |
|
473 abstract void version(); |
|
474 abstract void fullVersion(); |
458 |
475 |
459 abstract String getLocalizedMessage(String msg, Object... args); |
476 abstract String getLocalizedMessage(String msg, Object... args); |
460 |
477 |
461 abstract OptionHelper getOptionHelper(); |
478 abstract OptionHelper getOptionHelper(); |
462 |
479 |