MCPcopy Create free account
hub / github.com/PCGen/pcgen / checkStats

Method checkStats

code/src/java/pcgen/io/PCGVer2Parser.java:459–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457
458
459 private void checkStats() throws PCGParseException
460 {
461 if (seenStats.size() != Globals.getContext().getReferenceContext().getConstructedObjectCount(PCStat.class))
462 {
463 final String message =
464 LanguageBundle.getFormattedString("Exceptions.PCGenParser.WrongNumAttributes", //$NON-NLS-1$
465 seenStats.size(), Globals.getContext().getReferenceContext().getConstructedObjectCount(PCStat.class));
466 throw new PCGParseException("parseStatLines", "N/A", message, null); //$NON-NLS-1$//$NON-NLS-2$
467 }
468 }
469
470 /*
471 * ###############################################################

Callers 1

parseCachedLinesMethod · 0.95

Calls 5

getContextMethod · 0.95
getFormattedStringMethod · 0.95
sizeMethod · 0.65
getReferenceContextMethod · 0.65

Tested by

no test coverage detected