public class YamlParseContext extends Object
YamlParser.parse(YamlParseHandler, Map)
during its descent
into the YamlObject
being parsed.Constructor and Description |
---|
YamlParseContext() |
Modifier and Type | Method and Description |
---|---|
Object |
getDocHint(String key) |
void |
mergeDocHints(Map<String,Object> hints) |
boolean |
next()
Pop a
YamlParseHandler from the handler stack and execute its YamlParseHandler.handle(YamlObject, YamlParseContext) method on the YamlObject with
which it was pushed. |
YamlParseContext |
pop() |
YamlParseContext |
push(String key,
YamlParseHandler handler)
Parse a child of the current object if present
|
YamlParseContext |
push(YamlObject scope,
String key,
YamlParseHandler handler)
Parse a child of the specified object if present
|
YamlParseContext |
push(YamlObject obj,
YamlParseHandler handler)
Add a handler to the stack handling the specified object
|
YamlParseContext |
push(YamlParseHandler handler)
Add a handler to the stack handling the current object.
|
void |
setDocHint(String key,
Object value) |
public YamlParseContext push(String key, YamlParseHandler handler)
key
- key of the child entryhandler
- handler to usepublic YamlParseContext push(YamlObject scope, String key, YamlParseHandler handler)
scope
- object to start fromkey
- key of the child entryhandler
- handler to usepublic YamlParseContext push(YamlParseHandler handler)
handler
- handler to usepublic YamlParseContext push(YamlObject obj, YamlParseHandler handler)
obj
- the object to parsehandler
- handler to usepublic YamlParseContext pop()
public boolean next()
YamlParseHandler
from the handler stack and execute its YamlParseHandler.handle(YamlObject, YamlParseContext)
method on the YamlObject
with
which it was pushed.Copyright © 1996–2019 Geotools. All rights reserved.