MCPcopy Create free account
hub / github.com/apache/freemarker / getYesNo

Method getYesNo

src/main/java/freemarker/core/Include.java:194–205  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

192 }
193
194 private boolean getYesNo(String s) throws ParseException {
195 try {
196 return StringUtil.getYesNo(s);
197 }
198 catch (IllegalArgumentException iae) {
199 throw new ParseException("Error " + getStartLocation()
200 + "\nValue of include parse parameter "
201 + "must be boolean or one of these strings: "
202 + "\"n\", \"no\", \"f\", \"false\", \"y\", \"yes\", \"t\", \"true\""
203 + "\nFound: " + parseExp, parseExp);
204 }
205 }
206
207/*
208 boolean heedsOpeningWhitespace() {

Callers 1

acceptMethod · 0.95

Calls 2

getYesNoMethod · 0.95
getStartLocationMethod · 0.80

Tested by

no test coverage detected