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

Method parse

code/src/java/plugin/pretokens/parser/PreSkillParser.java:52–62  ·  view source on GitHub ↗

Parse the pre req list @param kind The kind of the prerequisite (less the "PRE" prefix) @param formula The body of the prerequisite. @param invertResult Whether the prerequisite should invert the result. @param overrideQualify if set true, this prerequisite will be enforced in spite

(String kind, String formula, boolean invertResult, boolean overrideQualify)

Source from the content-addressed store, hash-verified

50 * @throws PersistenceLayerException
51 */
52 @Override
53 public Prerequisite parse(String kind, String formula, boolean invertResult, boolean overrideQualify)
54 throws PersistenceLayerException
55 {
56 Prerequisite prereq = super.parse(kind, formula, invertResult, overrideQualify);
57
58 // Convert all of the key="feat (subfeat)" to key="feat" subkey="subfeat"
59 convertKeysToSubKeys(prereq, "skill");
60
61 return prereq;
62 }
63
64 @Override
65 protected boolean requiresValue()

Callers 6

testMultiSkillsMethod · 0.95
test1Method · 0.95
test2Method · 0.95
test3Method · 0.95
testTypeEqualsMethod · 0.95
testTypeEqualsMultMethod · 0.95

Calls 2

convertKeysToSubKeysMethod · 0.80
parseMethod · 0.65

Tested by 6

testMultiSkillsMethod · 0.76
test1Method · 0.76
test2Method · 0.76
test3Method · 0.76
testTypeEqualsMethod · 0.76
testTypeEqualsMultMethod · 0.76