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

Method unparse

code/src/java/plugin/lsttokens/PreLst.java:32–42  ·  view source on GitHub ↗
(LoadContext context, ConcretePrereqObject pcc)

Source from the content-addressed store, hash-verified

30 }
31
32 @Override
33 public String[] unparse(LoadContext context, ConcretePrereqObject pcc)
34 {
35 Changes<Prerequisite> changes = context.getObjectContext().getPrerequisiteChanges(pcc);
36 if (changes == null || !changes.includesGlobalClear())
37 {
38 // indicates no Token
39 return null;
40 }
41 return new String[]{Constants.LST_DOT_CLEAR};
42 }
43
44 @Override
45 public Class<ConcretePrereqObject> getTokenClass()

Callers

nothing calls this directly

Calls 3

getObjectContextMethod · 0.65
includesGlobalClearMethod · 0.65

Tested by

no test coverage detected