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

Method dataAdded

code/src/java/pcgen/cdom/facet/ModifierFacet.java:52–66  ·  view source on GitHub ↗
(DataFacetChangeEvent<CharID, PCGenScoped> dfce)

Source from the content-addressed store, hash-verified

50 private LoadContextFacet loadContextFacet = FacetLibrary.getFacet(LoadContextFacet.class);
51
52 @Override
53 public void dataAdded(DataFacetChangeEvent<CharID, PCGenScoped> dfce)
54 {
55 CharID id = dfce.getCharID();
56 PCGenScoped obj = dfce.getCDOMObject();
57 VarModifier<?>[] modifiers = obj.getModifierArray();
58 if (modifiers.length > 0)
59 {
60 ScopeInstance inst = scopeFacet.get(id, obj);
61 for (VarModifier<?> vm : modifiers)
62 {
63 processAddition(id, obj, vm, inst);
64 }
65 }
66 }
67
68 private <T> void processAddition(CharID id, VarScoped obj, VarModifier<T> vm, ScopeInstance inst)
69 {

Callers

nothing calls this directly

Calls 5

processAdditionMethod · 0.95
getCharIDMethod · 0.65
getCDOMObjectMethod · 0.65
getModifierArrayMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected