The nodes form the node-graph described in the YAML Specification.
While loading, the node graph is usually created by the
org., and later transformed into application specific
Java classes by the classes from the org. package.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private List | |
| private List | |
| protected Mark | |
| private List | |
| protected boolean | resolved
true when the tag is assigned by the resolver |
| private final Mark | |
| private Tag | |
| private boolean | |
| private Class | |
| protected Boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public String | |
| public List | Returns: the comment line list.The ordered list of blank lines and block comments (full line) that appear before this node. |
| public List | Returns: the comment line list.The ordered list of blank lines and block comments (full line) that appear AFTER this node. |
| public Mark | |
| public List | |
| public abstract NodeId | |
| public Mark | |
| public Tag | |
| public Class | |
| public final int | |
| public boolean | Returns: true if the node is self referenced.Indicates if this node must be constructed in two steps. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean |
| anchor | back to summary |
|---|---|
| private String anchor | |
| blockComments | back to summary |
|---|---|
| private List<CommentLine> blockComments | |
| endComments | back to summary |
|---|---|
| private List<CommentLine> endComments | |
| endMark | back to summary |
|---|---|
| protected Mark endMark | |
| inLineComments | back to summary |
|---|---|
| private List<CommentLine> inLineComments | |
| resolved | back to summary |
|---|---|
| protected boolean resolved true when the tag is assigned by the resolver | |
| startMark | back to summary |
|---|---|
| private final Mark startMark | |
| tag | back to summary |
|---|---|
| private Tag tag | |
| twoStepsConstruction | back to summary |
|---|---|
| private boolean twoStepsConstruction | |
| type | back to summary |
|---|---|
| private Class<? extends Object> type | |
| useClassConstructor | back to summary |
|---|---|
| protected Boolean useClassConstructor | |
| Node | back to summary |
|---|---|
| public Node(Tag tag, Mark startMark, Mark endMark) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object obj) Overrides java. Node is only equal to itself
| |
| getAnchor | back to summary |
|---|---|
| public String getAnchor() | |
| getBlockComments | back to summary |
|---|---|
| public List The ordered list of blank lines and block comments (full line) that appear before this node.
| |
| getEndComments | back to summary |
|---|---|
| public List The ordered list of blank lines and block comments (full line) that appear AFTER this node. Note these comment should occur only in the last node in a document, when walking the node tree "in order"
| |
| getEndMark | back to summary |
|---|---|
| public Mark getEndMark() | |
| getInLineComments | back to summary |
|---|---|
| public List The ordered list of in-line comments. The first of which appears at the end of the line respresent by this node. The rest are in the following lines, indented per the Spec to indicate they are continuation of the inline comment.
| |
| getNodeId | back to summary |
|---|---|
| public abstract NodeId getNodeId() For error reporting.
| |
| getStartMark | back to summary |
|---|---|
| public Mark getStartMark() | |
| getTag | back to summary |
|---|---|
| public Tag getTag() Tag of this node. Every node has a tag assigned. The tag is either local or global.
| |
| getType | back to summary |
|---|---|
| public Class | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isTwoStepsConstruction | back to summary |
|---|---|
| public boolean isTwoStepsConstruction() Indicates if this node must be constructed in two steps. Two-step construction is required whenever a node is a child (direct or indirect) of it self. That is, if a recursive structure is build using anchors and aliases.
Set by Only relevant during loading.
| |
| setAnchor | back to summary |
|---|---|
| public void setAnchor(String anchor) | |
| setBlockComments | back to summary |
|---|---|
| public void setBlockComments(List<CommentLine> blockComments) | |
| setEndComments | back to summary |
|---|---|
| public void setEndComments(List<CommentLine> endComments) | |
| setInLineComments | back to summary |
|---|---|
| public void setInLineComments(List<CommentLine> inLineComments) | |
| setTag | back to summary |
|---|---|
| public void setTag(Tag tag) | |
| setTwoStepsConstruction | back to summary |
|---|---|
| public void setTwoStepsConstruction(boolean twoStepsConstruction) | |
| setType | back to summary |
|---|---|
| public void setType(Class<? extends Object> type) | |
| setUseClassConstructor | back to summary |
|---|---|
| public void setUseClassConstructor(Boolean useClassConstructor) | |
| useClassConstructor | back to summary |
|---|---|
| public boolean useClassConstructor() | |