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

Method write

code/src/java/plugin/pretokens/writer/PreFactWriter.java:48–68  ·  view source on GitHub ↗
(Writer writer, Prerequisite prereq)

Source from the content-addressed store, hash-verified

46 }
47
48 @Override
49 public void write(Writer writer, Prerequisite prereq) throws PersistenceLayerException
50 {
51 checkValidOperator(prereq, operatorsHandled());
52 try
53 {
54 if (prereq.getOperator().equals(PrerequisiteOperator.LT))
55 {
56 writer.write('!');
57 }
58 writer.write("PREFACT:" + (prereq.isOverrideQualify() ? "Q:" : ""));
59 writer.write(prereq.getOperand());
60 writer.write(',');
61 writer.write(prereq.getCategoryName() + ',');
62 writer.write(prereq.getKey());
63 }
64 catch (IOException e)
65 {
66 throw new PersistenceLayerException(e);
67 }
68 }
69
70 @Override
71 public boolean specialCase(Writer writer, Prerequisite prereq) throws IOException

Callers

nothing calls this directly

Calls 9

operatorsHandledMethod · 0.95
checkValidOperatorMethod · 0.80
isOverrideQualifyMethod · 0.80
getOperandMethod · 0.80
getCategoryNameMethod · 0.80
equalsMethod · 0.65
getOperatorMethod · 0.65
writeMethod · 0.65
getKeyMethod · 0.65

Tested by

no test coverage detected