Corresponds to the 'Compose' step as described in chapter 3.1 of the YAML Specification.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final CommentEventsCollector | |
| private final CommentEventsCollector | |
| private final LoaderOptions | |
| private int | |
| private final int | |
| private int | |
| protected final Parser | parser
its parser |
| private final Set | |
| private final Resolver |
| Access | Constructor and Description |
|---|---|
| public | Composer(Parser
- the parser parser, Resolver - the resolver resolver, LoaderOptions - options loadingConfig)Create |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if there is at least one more document.Checks if further documents are available. |
| protected Node | Returns: node- the source node)To be able to override composeNode(node) which is a key |
| protected void | composeMappingChildren(List<NodeTuple>
- the data to fill children, MappingNode - the source node)Compose the members of mapping |
| protected Node | |
| private Node | |
| protected Node | |
| protected Node | |
| protected Node | Returns: node- the source node)To be able to override composeNode(node) which is a value |
| private void | |
| public Node | Returns: The root node of the document ornull if no more documents are available.Reads and composes the next document. |
| public Node | Returns: The root node of the document ornull if no document is available.Reads a document from a source that contains only one document. |
| private void |
| anchors | back to summary |
|---|---|
| private final Map<String, Node> anchors | |
| blockCommentsCollector | back to summary |
|---|---|
| private final CommentEventsCollector blockCommentsCollector | |
| inlineCommentsCollector | back to summary |
|---|---|
| private final CommentEventsCollector inlineCommentsCollector | |
| loadingConfig | back to summary |
|---|---|
| private final LoaderOptions loadingConfig | |
| nestingDepth | back to summary |
|---|---|
| private int nestingDepth | |
| nestingDepthLimit | back to summary |
|---|---|
| private final int nestingDepthLimit | |
| nonScalarAliasesCount | back to summary |
|---|---|
| private int nonScalarAliasesCount | |
| parser | back to summary |
|---|---|
| protected final Parser parser its parser | |
| recursiveNodes | back to summary |
|---|---|
| private final Set<Node> recursiveNodes | |
| resolver | back to summary |
|---|---|
| private final Resolver resolver | |
| Composer | back to summary |
|---|---|
| public Composer(Parser parser, Resolver resolver, LoaderOptions loadingConfig) Create
| |
| checkNode | back to summary |
|---|---|
| public boolean checkNode() Checks if further documents are available.
| |
| composeKeyNode | back to summary |
|---|---|
| protected Node composeKeyNode(MappingNode node) To be able to override composeNode(node) which is a key
| |
| composeMappingChildren | back to summary |
|---|---|
| protected void composeMappingChildren(List<NodeTuple> children, MappingNode node) Compose the members of mapping
| |
| composeMappingNode | back to summary |
|---|---|
| protected Node composeMappingNode(String anchor) | |
| composeNode | back to summary |
|---|---|
| private Node composeNode(Node parent) | |
| composeScalarNode | back to summary |
|---|---|
| protected Node composeScalarNode(String anchor, List<CommentLine> blockComments) | |
| composeSequenceNode | back to summary |
|---|---|
| protected Node composeSequenceNode(String anchor) | |
| composeValueNode | back to summary |
|---|---|
| protected Node composeValueNode(MappingNode node) To be able to override composeNode(node) which is a value
| |
| decreaseNestingDepth | back to summary |
|---|---|
| private void decreaseNestingDepth() Indicate that the collection is finished and the nesting is decreased | |
| getNode | back to summary |
|---|---|
| public Node getNode() Reads and composes the next document.
| |
| getSingleNode | back to summary |
|---|---|
| public Node getSingleNode() Reads a document from a source that contains only one document. If the stream contains more than one document an exception is thrown.
| |
| increaseNestingDepth | back to summary |
|---|---|
| private void increaseNestingDepth() Increase nesting depth and fail when it exceeds the denied limit | |