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

Method getToken

code/src/java/plugin/exporttokens/EqSetToken.java:46–71  ·  view source on GitHub ↗
(String tokenSource, PlayerCharacter pc, ExportHandler eh)

Source from the content-addressed store, hash-verified

44 }
45
46 @Override
47 public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh)
48 {
49 String retString = "";
50
51 if ("EQSET.START".equals(tokenSource))
52 {
53 //TODO: Does Nothing here, only on EQSheet exports, should that be fixed?
54 Logging.debugPrint("EQSET.START does Nothing here, only on EQSheet exports, should that be fixed?");
55 }
56 else if ("EQSET.END".equals(tokenSource))
57 {
58 //TODO: Does Nothing here, only on EQSheet exports, should that be fixed?
59 Logging.debugPrint("EQSET.END does Nothing here, only on EQSheet exports, should that be fixed?");
60 }
61 else if ("EQSET.NUMBER".equals(tokenSource))
62 {
63 retString = Integer.toString(getNumberToken(pc));
64 }
65 else if ("EQSET.NAME".equals(tokenSource))
66 {
67 retString = getNameToken(pc.getDisplay());
68 }
69
70 return retString;
71 }
72
73 /**
74 * Get Name Token

Callers

nothing calls this directly

Calls 6

debugPrintMethod · 0.95
getNumberTokenMethod · 0.95
getNameTokenMethod · 0.95
equalsMethod · 0.65
toStringMethod · 0.65
getDisplayMethod · 0.45

Tested by

no test coverage detected