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

Method parseFavoredClassLine

code/src/java/pcgen/io/PCGVer2Parser.java:3475–3484  ·  view source on GitHub ↗
(final String line)

Source from the content-addressed store, hash-verified

3473 }
3474
3475 private void parseFavoredClassLine(final String line)
3476 {
3477 String favClass = EntityEncoder.decode(line.substring(IOConstants.TAG_FAVOREDCLASS.length() + 1));
3478 PCClass cl =
3479 Globals.getContext().getReferenceContext().silentlyGetConstructedCDOMObject(PCClass.class, favClass);
3480 if (cl != null)
3481 {
3482 thePC.addFavoredClass(cl, thePC);
3483 }
3484 }
3485
3486 /*
3487 * ###############################################################

Callers 1

parseCachedLinesMethod · 0.95

Calls 5

decodeMethod · 0.95
getContextMethod · 0.95
addFavoredClassMethod · 0.80
getReferenceContextMethod · 0.65

Tested by

no test coverage detected