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

Class LoadContextInst

code/src/java/pcgen/rules/context/LoadContextInst.java:66–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64import pcgen.util.Logging;
65
66abstract class LoadContextInst implements LoadContext
67{
68 Logger LOG = Logger.getLogger(LoadContextInst.class.getName());
69
70 private static final PrerequisiteWriter PREREQ_WRITER = new PrerequisiteWriter();
71
72 private final DataSetID datasetID = DataSetID.getID();
73
74 private final AbstractListContext list;
75
76 private final AbstractObjectContext obj;
77
78 private final AbstractReferenceContext ref;
79
80 private final VariableContext var;
81
82 private final List<Campaign> campaignList = new ArrayList<>();
83
84 private int writeMessageCount = 0;
85
86 private final TokenSupport support = new TokenSupport();
87
88 private final List<Object> dontForget = new ArrayList<>();
89
90 /**
91 * The List of CommitTask objects for this LoadContext.
92 */
93 private final List<DeferredMethodController<?>> commitTasks = new ArrayList<>();
94
95 //Per file
96 private URI sourceURI;
97
98 //Per file
99 private CDOMObject stateful;
100
101 /**
102 * The current PCGenScope for this LoadContext.
103 */
104 private PCGenScope legalScope = null;
105
106 static
107 {
108 FacetInitialization.initialize();
109 }
110
111 public LoadContextInst(AbstractReferenceContext rc, AbstractListContext lc, AbstractObjectContext oc)
112 {
113 Objects.requireNonNull(rc, "ReferenceContext cannot be null");
114 Objects.requireNonNull(lc, "ListContext cannot be null");
115 Objects.requireNonNull(oc, "ObjectContext cannot be null");
116 ref = rc;
117 list = lc;
118 obj = oc;
119 var = new VariableContext(new PCGenManagerFactory(this));
120 }
121
122 @Override
123 public void addWriteMessage(String string)

Callers

nothing calls this directly

Calls 4

getIDMethod · 0.95
initializeMethod · 0.95
getLoggerMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected