Package org.snakeyaml.engine.v2.nodes
Class AnchorNode
- java.lang.Object
-
- org.snakeyaml.engine.v2.nodes.Node
-
- org.snakeyaml.engine.v2.nodes.AnchorNode
-
public class AnchorNode extends Node
This class is only used during representation (dumping)
-
-
Constructor Summary
Constructors Constructor Description AnchorNode(Node realNode)
Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeType
getNodeType()
Node
getRealNode()
getter-
Methods inherited from class org.snakeyaml.engine.v2.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTag
-
-
-
-
Field Detail
-
realNode
private final Node realNode
-
-
Constructor Detail
-
AnchorNode
public AnchorNode(Node realNode)
Create- Parameters:
realNode
- - the source node
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in classNode
- Returns:
- scalar, sequence, mapping
-
getRealNode
public Node getRealNode()
getter- Returns:
- the origin
-
-