public class ValueDefFactory extends Object
ValueDef by looking ahead on the input stream.
Looking ahead is safe because this class only looks at syntactic
tokens such as {, [ or the first value token.
The underlying JSON parser is left with the first value token
as its current token. Pushes other tokens back on the token stack
so they can be re-consumed by the actual parser.| Constructor and Description |
|---|
ValueDefFactory(TokenIterator tokenizer) |
| Modifier and Type | Method and Description |
|---|---|
static ValueDef |
arrayLookAhead(TokenIterator tokenizer) |
static ValueDef |
lookAhead(TokenIterator tokenizer) |
public ValueDefFactory(TokenIterator tokenizer)
public static ValueDef lookAhead(TokenIterator tokenizer)
public static ValueDef arrayLookAhead(TokenIterator tokenizer)
Copyright © 2021 The Apache Software Foundation. All rights reserved.