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

Method getPCCText

code/src/java/pcgen/core/PCClass.java:517–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

515 }
516
517 @Override
518 public String getPCCText()
519 {
520 StringJoiner txt = new StringJoiner("\t");
521 txt.add("CLASS:" + getDisplayName());
522 txt.add(PrerequisiteWriter.prereqsToString(this));
523 Globals.getContext().unparse(this).forEach(txt::add);
524
525 // now all the level-based stuff
526 final String lineSep = System.getProperty("line.separator");
527
528 for (Map.Entry<Integer, PCClassLevel> me : levelMap.entrySet())
529 {
530 txt.add(lineSep + me.getKey());
531 txt.add(PrerequisiteWriter.prereqsToString(me.getValue()));
532 Globals.getContext().unparse(me.getValue()).forEach(txt::add);
533 }
534
535 return txt.toString();
536 }
537
538 /*
539 * FINALPCCLASSONLY This is really an item that the PCClass knows, and then the

Callers 2

testGetPCCTextMethod · 0.95
testGetPCCTextMethod · 0.95

Calls 11

prereqsToStringMethod · 0.95
getContextMethod · 0.95
forEachMethod · 0.80
addMethod · 0.65
getDisplayNameMethod · 0.65
unparseMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65
toStringMethod · 0.65
getPropertyMethod · 0.45
entrySetMethod · 0.45

Tested by 2

testGetPCCTextMethod · 0.76
testGetPCCTextMethod · 0.76