Home
last modified time | relevance | path

Searched refs:parseObject (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
DFormat.java230 public abstract Object parseObject (String source, ParsePosition pos); in parseObject() method in Format
241 public Object parseObject(String source) throws ParseException { in parseObject() method in Format
243 Object result = parseObject(source, pos); in parseObject()
DDateFormat.java419 public Object parseObject(String source, ParsePosition pos) { in parseObject() method in DateFormat
DNumberFormat.java275 public final Object parseObject(String source, ParsePosition pos) { in parseObject() method in NumberFormat
DMessageFormat.java1015 = formats[i].parseObject(source,tempStatus); in parse()
1080 public Object parseObject(String source, ParsePosition pos) { in parseObject() method in MessageFormat
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DNumberFormatTest.java139 new Long(35), format.parseObject("35.76")); in test_getIntegerInstance()
166 new Long(-36), format.parseObject("-36")); in test_getIntegerInstanceLjava_util_Locale()
189 new Long(36), format.parseObject("36-")); in test_getIntegerInstanceLjava_util_Locale()
254 assertNull(NumberFormat.getInstance().parseObject("0", new ParsePosition(-1))); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
258 NumberFormat.getInstance().parseObject("test", null); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
DMessageFormatTest.java162 res = (Object[]) mf.parseObject(result, pp); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
173 res = (Object[]) mf.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
180 mf.parseObject(result, null); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
/libcore/luni/src/test/java/libcore/java/text/
DOldFormatTest.java39 public Object parseObject(String source, ParsePosition pos) { in parseObject() method in OldFormatTest.MockFormat
89 assertNull(mf.parseObject("")); in test_parseObjectLjava_lang_String()
DOldNumberFormatTest.java36 assertEquals(new Long(-36), format.parseObject("-36")); in test_getIntegerInstanceLjava_util_Locale()
46 assertEquals(new Long(-36), format.parseObject("-36")); in test_getIntegerInstanceLjava_util_Locale()
60 assertEquals(36L, format.parseObject("36-")); in test_getIntegerInstanceLjava_util_Locale()
111 assertNull(NumberFormat.getInstance().parseObject("0", in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
149 NumberFormat.getInstance().parseObject("test", null); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
159 Object result = nf.parseObject(sourseStr, position); in parseObjectTest()
795 nf1.parseObject("-123.123"), nf1.parse("-123.123")); in test_parseLjava_lang_String()
DOldDateFormatTest.java387 Date result = (Date) df.parseObject(df.format(current), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
404 result = (Date) df.parseObject(partialCorrect, pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
416 result = (Date) df.parseObject(new String(newArray), pp); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
428 df.parseObject(df.format(current), null); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
434 assertNull(df.parseObject("test", pp)); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java783 TemporalAccessor result = (TemporalAccessor) format.parseObject("ONE30"); in test_toFormat_parseObject_String()
793 format.parseObject("ONEXXX"); in test_toFormat_parseObject_String_parseError()
806 …format.parseObject("ONEXXX678901234567890123456789012345678901234567890123456789012345678901234567… in test_toFormat_parseObject_String_parseErrorLongText()
819 format.parseObject((String) null); in test_toFormat_parseObject_String_null()
828 TemporalAccessor result = (TemporalAccessor) format.parseObject("ONE30XXX", pos); in test_toFormat_parseObject_StringParsePosition()
840 TemporalAccessor result = (TemporalAccessor) format.parseObject("ONEXXX", pos); in test_toFormat_parseObject_StringParsePosition_parseError()
852 format.parseObject((String) null, pos); in test_toFormat_parseObject_StringParsePosition_nullString()
860 format.parseObject("ONE30", (ParsePosition) null); in test_toFormat_parseObject_StringParsePosition_nullParsePosition()
869 assertNull(test.parseObject("ONE30", pos)); in test_toFormat_parseObject_StringParsePosition_invalidPosition_tooBig()
879 assertNull(test.parseObject("ONE30", pos)); in test_toFormat_parseObject_StringParsePosition_invalidPosition_tooSmall()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/text/
DNumberFormat.java58 public final java.lang.Object parseObject( in parseObject() method in NumberFormat
DDateFormat.java73 public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos) { in parseObject() method in DateFormat
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java64 public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos) { throw n… in parseObject() method in DateFormat
/libcore/ojluni/annotations/sdk/nullability/java/text/
DNumberFormat.annotated.java56 @libcore.util.Nullable public final java.lang.Object parseObject(@libcore.util.NonNull java.lang.St… in parseObject() method in NumberFormat
DDateFormat.annotated.java64 @libcore.util.Nullable public java.lang.Object parseObject(@libcore.util.NonNull java.lang.String s… in parseObject() method in DateFormat
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java2121 public Object parseObject(String text) throws ParseException { in parseObject() method in DateTimeFormatter.ClassicFormat
2135 public Object parseObject(String text, ParsePosition pos) { in parseObject() method in DateTimeFormatter.ClassicFormat
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java222 public Object parseObject(String p1, java.text.ParsePosition p2) { in test_writeObject_Format()
231 return save.equals(((java.text.Format) obj).parseObject( in test_writeObject_Format()
236 ((java.text.Format) objToSave).parseObject("Test", null); in test_writeObject_Format()
/libcore/api/
Dcurrent.txt10241 method @Nullable public Object parseObject(@NonNull String, @NonNull java.text.ParsePosition);
10411 method public abstract Object parseObject(String, java.text.ParsePosition);
10412 method public Object parseObject(String) throws java.text.ParseException;
10431 method public Object parseObject(String, java.text.ParsePosition);
10485 …method @Nullable public final Object parseObject(@NonNull String, @NonNull java.text.ParsePosition…