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

Class CodeControlLoader

code/src/java/pcgen/rules/persistence/CodeControlLoader.java:32–49  ·  view source on GitHub ↗

A CodeControlLoader is a loader that processes the Code Control Definitions

Source from the content-addressed store, hash-verified

30 * A CodeControlLoader is a loader that processes the Code Control Definitions
31 */
32public class CodeControlLoader extends LstLineFileLoader
33{
34 @Override
35 public void parseLine(LoadContext context, String inputLine, URI sourceURI)
36 {
37 int sepLoc = inputLine.indexOf('\t');
38 if (sepLoc != -1)
39 {
40 Logging.errorPrint(
41 "Unsure what to do with line with multiple tokens: " + inputLine + " in file: " + sourceURI);
42 return;
43 }
44
45 AbstractReferenceContext refContext = context.getReferenceContext();
46 CodeControl controller = refContext.constructNowIfNecessary(CodeControl.class, "Controller");
47 LstUtils.processToken(context, controller, sourceURI, inputLine);
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected