MCPcopy Create free account
hub / github.com/MenoData/Time4J / parse

Method parse

base/src/main/java/net/time4j/DayPeriod.java:958–978  ·  view source on GitHub ↗
(
            CharSequence text,
            ParsePosition status,
            AttributeQuery attributes
        )

Source from the content-addressed store, hash-verified

956 }
957
958 @Override
959 public String parse(
960 CharSequence text,
961 ParsePosition status,
962 AttributeQuery attributes
963 ) {
964
965 int index = status.getIndex();
966 OutputContext oc = attributes.get(Attributes.OUTPUT_CONTEXT, OutputContext.FORMAT);
967 String result = this.parse(text, status, attributes, oc);
968
969 if ((result == null) && attributes.get(Attributes.PARSE_MULTIPLE_CONTEXT, Boolean.TRUE)) {
970 status.setErrorIndex(-1);
971 status.setIndex(index);
972 oc = ((oc == OutputContext.FORMAT) ? OutputContext.STANDALONE : OutputContext.FORMAT);
973 result = this.parse(text, status, attributes, oc);
974 }
975
976 return result;
977
978 }
979
980 private String parse(
981 CharSequence text,

Callers

nothing calls this directly

Calls 13

getLocaleMethod · 0.95
getCalendarTypeMethod · 0.95
compareIgnoreCaseMethod · 0.95
isPredefinedMethod · 0.80
loadTextFormsMethod · 0.80
containsKeyMethod · 0.80
getMethod · 0.65
getIndexMethod · 0.45
addMethod · 0.45
valuesMethod · 0.45
lengthMethod · 0.45
createKeyMethod · 0.45

Tested by

no test coverage detected