if (reader.matches(JsopReader.NUMBER)) {
String number = reader.getToken();
try {
return new LongPropertyState(name, Long.parseLong(number));
} catch (NumberFormatException e) {
return new DoublePropertyState(name, Double.parseDouble(number));
}
} else if (reader.matches(JsopReader.TRUE)) {
return BooleanPropertyState.booleanProperty(name, true);
} else if (reader.matches(JsopReader.FALSE)) {
return BooleanPropertyState.booleanProperty(name, false);