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

Method parse

base/src/main/java/net/time4j/calendar/EastAsianST.java:141–157  ·  view source on GitHub ↗
(
        CharSequence text,
        ParsePosition status,
        AttributeQuery attributes
    )

Source from the content-addressed store, hash-verified

139 }
140
141 @Override
142 public SolarTerm parse(
143 CharSequence text,
144 ParsePosition status,
145 AttributeQuery attributes
146 ) {
147 Locale loc = attributes.get(Attributes.LANGUAGE, Locale.ROOT);
148 int len = text.length();
149 int start = status.getIndex();
150
151 if (start >= len) {
152 status.setErrorIndex(len);
153 return null;
154 }
155
156 return SolarTerm.parse(text, loc, status);
157 }
158
159 @Override
160 public SolarTerm getValue(D context) {

Callers

nothing calls this directly

Calls 4

parseMethod · 0.95
getMethod · 0.65
lengthMethod · 0.45
getIndexMethod · 0.45

Tested by

no test coverage detected