Home
last modified time | relevance | path

Searched refs:getCurrentName (Results 1 – 25 of 47) sorted by relevance

12

/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DParserWithObjectsTest.java89 assertEquals(String.valueOf(i), jp.getCurrentName()); in _testNextValueBasic()
106 assertEquals("a", jp.getCurrentName()); in _testNextValueBasic()
124 assertNull(jp.getCurrentName()); in _testNextValueNested()
126 assertEquals("a", jp.getCurrentName()); in _testNextValueNested()
128 assertEquals("b", jp.getCurrentName()); in _testNextValueNested()
130 assertEquals("c", jp.getCurrentName()); in _testNextValueNested()
133 assertEquals("a", jp.getCurrentName()); in _testNextValueNested()
136 assertEquals("d", jp.getCurrentName()); in _testNextValueNested()
138 assertNull(jp.getCurrentName()); in _testNextValueNested()
146 assertNull(jp.getCurrentName()); in _testNextValueNested()
[all …]
DNextXxxAccessTest.java136 assertEquals(NAME.getValue(), p.getCurrentName()); in _testIsNextTokenName1()
144 assertEquals("name2", p.getCurrentName()); in _testIsNextTokenName1()
150 assertEquals("x", p.getCurrentName()); in _testIsNextTokenName1()
169 assertEquals(NAME.getValue(), p.getCurrentName()); in _testIsNextTokenName1()
177 assertEquals("name2", p.getCurrentName()); in _testIsNextTokenName1()
182 assertEquals("x", p.getCurrentName()); in _testIsNextTokenName1()
205 assertEquals(NAME.getValue(), p.getCurrentName()); in _testIsNextTokenName2()
213 assertEquals("name2", p.getCurrentName()); in _testIsNextTokenName2()
218 assertEquals("x", p.getCurrentName()); in _testIsNextTokenName2()
240 assertEquals("name", p.getCurrentName()); in _testIsNextTokenName3()
[all …]
DSimpleParserTest.java73 String actName = p.getCurrentName(); in _testIntern()
177 assertEquals("key1", ctxt.getCurrentName()); in _testKeywords()
180 assertEquals("key1", ctxt.getCurrentName()); in _testKeywords()
191 assertEquals("key2", ctxt.getCurrentName()); in _testKeywords()
194 assertEquals("key2", ctxt.getCurrentName()); in _testKeywords()
206 assertNull(ctxt.getCurrentName()); in _testKeywords()
207 assertEquals("key4", ctxt.getParent().getCurrentName()); in _testKeywords()
222 assertNull(ctxt.getCurrentName()); in _testKeywords()
319 String act = p.getCurrentName(); in _testNameEscaping()
398 assertEquals("doc", p.getCurrentName()); in _testLongText()
[all …]
DNonStandardUnquotedNamesTest.java132 assertEquals("abc"+(i&127), p.getCurrentName()); in _testLargeUnquoted()
147 assertEquals("a", p.getCurrentName()); in _testSimpleUnquoted()
150 assertEquals("_foo", p.getCurrentName()); in _testSimpleUnquoted()
153 assertEquals("$", p.getCurrentName()); in _testSimpleUnquoted()
159 assertEquals(" ", p.getCurrentName()); in _testSimpleUnquoted()
173 assertEquals("123", p.getCurrentName()); in _testSimpleUnquoted()
177 assertEquals("4", p.getCurrentName()); in _testSimpleUnquoted()
DNonStandardAposQuotedNamesTest.java122 assertEquals("b", p.getCurrentName()); in _testSingleQuotesEnabled()
128 assertEquals("b", p.getCurrentName()); in _testSingleQuotesEnabled()
138 assertEquals("b", p.getCurrentName()); in _testSingleQuotesEnabled()
142 assertEquals("x", p.getCurrentName()); in _testSingleQuotesEnabled()
146 assertEquals("y", p.getCurrentName()); in _testSingleQuotesEnabled()
150 assertEquals("a", p.getCurrentName()); in _testSingleQuotesEnabled()
DUTF8NamesParseTest.java53 assertEquals("", p.getCurrentName()); in _testEmptyName()
82 assertEquals(NAME, p.getCurrentName()); in _testUtf8Name2Bytes()
88 assertEquals(NAME, p.getCurrentName()); in _testUtf8Name2Bytes()
114 assertEquals(NAME, p.getCurrentName()); in _testUtf8Name3Bytes()
116 assertEquals(NAME, p.getCurrentName()); in _testUtf8Name3Bytes()
DParserSymbolHandlingTest.java32 String currName = parser.getCurrentName(); in _testSymbolsWithNull()
40 currName = parser.getCurrentName(); in _testSymbolsWithNull()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/
DTestParserOverrides.java75 assertEquals("first", jp.getCurrentName()); in _testCurrentName()
77 assertEquals("first", jp.getCurrentName()); // still the same... in _testCurrentName()
79 assertEquals("foobar", jp.getCurrentName()); // but not any more! in _testCurrentName()
82 assertEquals("second", jp.getCurrentName()); in _testCurrentName()
84 assertEquals("second", jp.getCurrentName()); in _testCurrentName()
87 assertEquals("third", jp.getCurrentName()); in _testCurrentName()
89 assertEquals("third", jp.getCurrentName()); in _testCurrentName()
93 assertEquals("foobar", jp.getCurrentName()); in _testCurrentName()
DJsonReadContextTest.java33 assertEquals("asd / \" € < - _", jsonReadContext.getCurrentName()); in testSetCurrentName()
37 assertNull(jsonReadContext.getCurrentName()); in testSetCurrentName()
DTestWithTonsaSymbols.java52 assertEquals(fieldNameFor(i), p.getCurrentName()); in _testWith()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DJsonStreamContext.java176 public abstract String getCurrentName(); in getCurrentName() method in JsonStreamContext
181 public boolean hasCurrentName() { return getCurrentName() != null; } in hasCurrentName()
274 String currentName = getCurrentName(); in toString()
DJsonParser.java880 return (nextToken() == JsonToken.FIELD_NAME) && str.getValue().equals(getCurrentName()); in nextFieldName()
891 return (nextToken() == JsonToken.FIELD_NAME) ? getCurrentName() : null; in nextFieldName()
1200 public abstract String getCurrentName() throws IOException; in getCurrentName() method in JsonParser
1205 return getCurrentName(); in currentName()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DTokenBufferReadContext.java36 _currentName = base.getCurrentName(); in TokenBufferReadContext()
49 _currentName = base.getCurrentName(); in TokenBufferReadContext()
129 @Override public String getCurrentName() { return _currentName; } in getCurrentName() method in TokenBufferReadContext
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/json/async/
DNonBlockingJsonParserBase.java390 return _parsingContext.getCurrentName(); in _getText2()
409 String n = _parsingContext.getCurrentName(); in getText()
437 return getCurrentName(); in getValueAsString()
450 return getCurrentName(); in getValueAsString()
463 String name = _parsingContext.getCurrentName(); in getTextCharacters()
495 return _parsingContext.getCurrentName().length(); in getTextLength()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/sym/
DTestSymbolsWithMediaItem.java49 String name = p.getCurrentName(); in testSmallSymbolSetWithBytes()
79 String name = p.getCurrentName(); in testSmallSymbolSetWithChars()
DSymbolsViaParserTest.java52 syms.add(p.getCurrentName()); in _test17Chars()
87 assertEquals(field, parser.getCurrentName()); in _testSymbolTableExpansion()
DTestByteBasedSymbols.java61 assertEquals(FIELD_NAMES[i], jp1.getCurrentName()); in testSharedSymbols()
62 assertEquals(FIELD_NAMES[len-(i+1)], jp2.getCurrentName()); in testSharedSymbols()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/
DGeneratorBasicTest.java218 assertEquals("a", gen.getOutputContext().getCurrentName()); in testOutputContext()
228 assertEquals("b", ctxt.getCurrentName()); in testOutputContext()
230 assertEquals("b", ctxt.getCurrentName()); in testOutputContext()
233 assertEquals("c", gen.getOutputContext().getCurrentName()); in testOutputContext()
238 assertEquals("d", gen.getOutputContext().getCurrentName()); in testOutputContext()
DObjectWriteTest.java239 assertEquals("str", jp.getCurrentName()); in testConvenienceMethodsWithNulls()
252 assertEquals("obj", jp.getCurrentName()); in testConvenienceMethodsWithNulls()
256 assertEquals("bin", jp.getCurrentName()); in testConvenienceMethodsWithNulls()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/
DTreeTraversingParser.java155 @Override public String getCurrentName() { in getCurrentName() method in TreeTraversingParser
160 return (crsr == null) ? null : crsr.getCurrentName(); in getCurrentName()
203 return _nodeCursor.getCurrentName(); in getText()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/filter/
DFilteringParserDelegate.java185 public String getCurrentName() throws IOException { in getCurrentName() method in FilteringParserDelegate
189 return (parent == null) ? null : parent.getCurrentName(); in getCurrentName()
191 return ctxt.getCurrentName(); in getCurrentName()
389 final String name = delegate.getCurrentName(); in nextToken()
563 final String name = delegate.getCurrentName(); in _nextToken2()
704 final String name = delegate.getCurrentName(); in _nextTokenWithBuffering()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DProblemHandlerLocation1440Test.java71 if (streamContext != null && streamContext.getCurrentName() != null) { in addParent()
72 pathList.add(streamContext.getCurrentName()); in addParent()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/filter/
DBasicParserFilteringTest.java375 assertEquals("ob", p.getCurrentName()); in testTokensSingleMatchWithPath()
379 assertEquals("ob", p.getCurrentName()); in testTokensSingleMatchWithPath()
384 assertEquals("value", p.getCurrentName()); in testTokensSingleMatchWithPath()
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/util/
DJsonParserDelegate.java125 … @Override public String getCurrentName() throws IOException { return delegate.getCurrentName(); } in getCurrentName() method in JsonParserDelegate
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/testsupport/
DAsyncReaderWrapper.java50 return _streamReader.getCurrentName(); in currentName()

12