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

Method wrap

code/src/java/pcgen/output/wrapper/StringWrapper.java:33–41  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

31public class StringWrapper implements SimpleObjectWrapper
32{
33 @Override
34 public TemplateModel wrap(Object o) throws TemplateModelException
35 {
36 if (o instanceof String)
37 {
38 return new StringModel(FileAccess.filterString(o.toString()));
39 }
40 throw new TemplateModelException("Object was not a String");
41 }
42}

Callers

nothing calls this directly

Calls 2

filterStringMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected