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

Method hasVariable

code/src/java/pcgen/core/PlayerCharacter.java:2432–2442  ·  view source on GitHub ↗

Check whether the PC has this variable. @param variableString The variable to check for. @return True if the PC has the variable.

(final String variableString)

Source from the content-addressed store, hash-verified

2430 * @return True if the PC has the variable.
2431 */
2432 public boolean hasVariable(final String variableString)
2433 {
2434 try
2435 {
2436 return variableFacet.contains(id, VariableKey.valueOf(variableString));
2437 } catch (IllegalArgumentException e)
2438 {
2439 //Built in variable
2440 return false;
2441 }
2442 }
2443
2444 /**
2445 * @param eq

Callers 2

testExecMethod · 0.95
testExecMethod · 0.95

Calls 2

valueOfMethod · 0.95
containsMethod · 0.65

Tested by 2

testExecMethod · 0.76
testExecMethod · 0.76