public abstract class EmptyArrayParser extends AbstractElementParser
[], but no array elements which would indicate the type.
Resolves to a specific type upon
presentation of the first element. If that element is
null, we must still choose a type to record nulls.
This array listener holds no element since none has been created yet; we use this only while we see empty arrays.
| Constructor and Description |
|---|
EmptyArrayParser(JsonStructureParser structParser,
String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(TokenIterator tokenizer) |
protected abstract ElementParser |
resolve(TokenIterator tokenizer)
Replace this parser with a new parser based on the current
parse context.
|
errorFactory, structParserprotected final String key
public EmptyArrayParser(JsonStructureParser structParser, String key)
public void parse(TokenIterator tokenizer)
protected abstract ElementParser resolve(TokenIterator tokenizer)
Copyright © 2021 The Apache Software Foundation. All rights reserved.