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

Method getPCCText

code/src/java/pcgen/core/Ability.java:78–87  ·  view source on GitHub ↗

Make a string that can be saved that will represent this Ability object @return a string representation that can be parsed to rebuild the Ability

()

Source from the content-addressed store, hash-verified

76 * Ability
77 */
78 @Override
79 public String getPCCText()
80 {
81 StringJoiner txt = new StringJoiner("\t");
82 txt.add(getDisplayName());
83 txt.add("CATEGORY:" + getCategory());
84 Globals.getContext().unparse(this).forEach(txt::add);
85 txt.add(PrerequisiteWriter.prereqsToString(this));
86 return txt.toString();
87 }
88
89 /**
90 * Compare an ability (category) to another one

Callers

nothing calls this directly

Calls 8

getCategoryMethod · 0.95
getContextMethod · 0.95
prereqsToStringMethod · 0.95
forEachMethod · 0.80
addMethod · 0.65
getDisplayNameMethod · 0.65
unparseMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected