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

Method process

code/src/java/pcgen/cdom/content/fact/FactGrouping.java:118–139  ·  view source on GitHub ↗
(PCGenScoped o, Consumer<PCGenScoped> consumer)

Source from the content-addressed store, hash-verified

116 }
117
118 @Override
119 public void process(PCGenScoped o, Consumer<PCGenScoped> consumer)
120 {
121 //Cast can not fail (as only CDOMObject can have facts)
122 CDOMObject cdo = (CDOMObject) o;
123 FactKey<F> fk = def.getFactKey();
124 if (toMatch.get().equals(cdo.get(fk)))
125 {
126 if (childGrouping == null)
127 {
128 consumer.accept(o);
129 }
130 else
131 {
132 GroupingInfo<?> childInfo = info.getChild();
133 for (PCGenScoped childObject : o.getChildren(childInfo.getObjectType()))
134 {
135 childGrouping.process(childObject, consumer);
136 }
137 }
138 }
139 }
140}

Callers

nothing calls this directly

Calls 9

getMethod · 0.95
getFactKeyMethod · 0.65
equalsMethod · 0.65
getMethod · 0.65
acceptMethod · 0.65
getChildrenMethod · 0.65
processMethod · 0.65
getChildMethod · 0.45
getObjectTypeMethod · 0.45

Tested by

no test coverage detected