|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yaml.snakeyaml.composer.Composer
public class Composer
Creates a node graph from parser events.
Corresponds to the 'Compose' step as described in chapter 3.1 of the YAML Specification.
| Constructor Summary | |
|---|---|
Composer(Parser parser,
Resolver resolver)
|
|
| Method Summary | |
|---|---|
boolean |
checkNode()
Checks if further documents are available. |
Node |
getNode()
Reads and composes the next document. |
Node |
getSingleNode()
Reads a document from a source that contains only one document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Composer(Parser parser,
Resolver resolver)
| Method Detail |
|---|
public boolean checkNode()
true if there is at least one more document.public Node getNode()
null if no more
documents are available.public Node getSingleNode()
If the stream contains more than one document an exception is thrown.
null if no document
is available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||