Modifier and Type | Field and Description |
---|---|
private java.util.Iterator<Node> |
Yaml.NodeIterable.iterator |
Modifier and Type | Method and Description |
---|---|
Node |
Yaml.compose(java.io.Reader yaml)
Parse the first YAML document in a stream and produce the corresponding representation tree.
|
Node |
Yaml.represent(java.lang.Object data)
Produce the corresponding representation tree for a given Object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<Node> |
Yaml.composeAll(java.io.Reader yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
java.util.Iterator<Node> |
Yaml.NodeIterable.iterator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
TypeDescription.newInstance(Node node)
This method should be overridden for TypeDescription implementations that are supposed to
implement instantiation logic that is different from default one as implemented in YAML
constructors.
|
java.lang.Object |
TypeDescription.newInstance(java.lang.String propertyName,
Node node) |
java.util.List<Event> |
Yaml.serialize(Node data)
Serialize the representation tree into Events.
|
void |
Yaml.serialize(Node node,
java.io.Writer output)
Serialize (dump) a YAML node into a YAML stream.
|
boolean |
TypeDescription.setupPropertyType(java.lang.String key,
Node valueNode) |
Constructor and Description |
---|
NodeIterable(java.util.Iterator<Node> iterator) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Node> |
Composer.anchors |
private java.util.Set<Node> |
Composer.recursiveNodes |
Modifier and Type | Method and Description |
---|---|
protected Node |
Composer.composeKeyNode(MappingNode node) |
protected Node |
Composer.composeMappingNode(java.lang.String anchor) |
private Node |
Composer.composeNode(Node parent) |
protected Node |
Composer.composeScalarNode(java.lang.String anchor,
java.util.List<CommentLine> blockComments) |
protected Node |
Composer.composeSequenceNode(java.lang.String anchor) |
protected Node |
Composer.composeValueNode(MappingNode node) |
Node |
Composer.getNode()
Reads and composes the next document.
|
Node |
Composer.getSingleNode()
Reads a document from a source that contains only one document.
|
Modifier and Type | Method and Description |
---|---|
private Node |
Composer.composeNode(Node parent) |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<Node,java.lang.Object> |
BaseConstructor.constructedObjects |
private java.util.Set<Node> |
BaseConstructor.recursiveObjects |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
Construct.construct(Node node)
Construct a Java instance with all the properties injected when it is possible.
|
java.lang.Object |
Constructor.ConstructMapping.construct(Node node)
Construct JavaBean.
|
java.lang.Object |
Constructor.ConstructYamlObject.construct(Node node) |
java.lang.Object |
Constructor.ConstructScalar.construct(Node nnode) |
java.lang.Object |
Constructor.ConstructSequence.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlNull.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlBool.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlInt.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlFloat.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlBinary.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlTimestamp.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlOmap.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlPairs.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlSet.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlStr.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlSeq.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructYamlMap.construct(Node node) |
java.lang.Object |
SafeConstructor.ConstructUndefined.construct(Node node) |
void |
AbstractConstruct.construct2ndStep(Node node,
java.lang.Object data)
Fail with a reminder to provide the seconds step for a recursive structure
|
void |
Construct.construct2ndStep(Node node,
java.lang.Object object)
Apply the second step when constructing recursive structures.
|
void |
Constructor.ConstructMapping.construct2ndStep(Node node,
java.lang.Object object) |
void |
Constructor.ConstructYamlObject.construct2ndStep(Node node,
java.lang.Object object) |
void |
Constructor.ConstructSequence.construct2ndStep(Node node,
java.lang.Object object) |
void |
SafeConstructor.ConstructYamlSet.construct2ndStep(Node node,
java.lang.Object object) |
void |
SafeConstructor.ConstructYamlSeq.construct2ndStep(Node node,
java.lang.Object data) |
void |
SafeConstructor.ConstructYamlMap.construct2ndStep(Node node,
java.lang.Object object) |
protected java.lang.Object |
BaseConstructor.constructDocument(Node node)
Construct complete YAML document.
|
protected java.lang.Object |
BaseConstructor.constructObject(Node node)
Construct object from the specified Node.
|
protected java.lang.Object |
BaseConstructor.constructObjectNoCheck(Node node) |
protected java.lang.Object |
BaseConstructor.finalizeConstruction(Node node,
java.lang.Object data) |
protected java.lang.Class<?> |
Constructor.getClassForNode(Node node) |
protected Construct |
BaseConstructor.getConstructor(Node node)
Get the constructor to construct the Node.
|
private Construct |
Constructor.ConstructYamlObject.getConstructor(Node node) |
protected java.lang.Object |
BaseConstructor.newInstance(java.lang.Class<?> ancestor,
Node node) |
protected java.lang.Object |
BaseConstructor.newInstance(java.lang.Class<?> ancestor,
Node node,
boolean tryDefault)
Tries to create a new object for the node.
|
protected java.lang.Object |
BaseConstructor.newInstance(Node node) |
private java.lang.Object |
Constructor.ConstructMapping.newInstance(TypeDescription memberDescription,
java.lang.String propertyName,
Node node) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
EnvScalarConstructor.ConstructEnv.construct(Node node) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
CompactConstructor.ConstructCompactObject.construct(Node node) |
void |
CompactConstructor.ConstructCompactObject.construct2ndStep(Node node,
java.lang.Object object) |
protected Construct |
CompactConstructor.getConstructor(Node node) |
Modifier and Type | Class and Description |
---|---|
class |
AnchorNode
This class is only used during representation (dumping)
|
class |
CollectionNode<T>
Base class for the two collection types
mapping and collection . |
class |
MappingNode
Represents a map.
|
class |
ScalarNode
Represents a scalar node.
|
class |
SequenceNode
Represents a sequence.
|
Modifier and Type | Field and Description |
---|---|
private Node |
NodeTuple.keyNode |
private Node |
AnchorNode.realNode |
private Node |
NodeTuple.valueNode |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Node> |
SequenceNode.value |
Modifier and Type | Method and Description |
---|---|
Node |
NodeTuple.getKeyNode()
Key node.
|
Node |
AnchorNode.getRealNode() |
Node |
NodeTuple.getValueNode()
Value node.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
SequenceNode.getValue()
Returns the elements in this sequence.
|
Constructor and Description |
---|
AnchorNode(Node realNode) |
NodeTuple(Node keyNode,
Node valueNode) |
Constructor and Description |
---|
SequenceNode(Tag tag,
boolean resolved,
java.util.List<Node> value,
Mark startMark,
Mark endMark,
java.lang.Boolean style)
Deprecated.
|
SequenceNode(Tag tag,
boolean resolved,
java.util.List<Node> value,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle) |
SequenceNode(Tag tag,
java.util.List<Node> value,
java.lang.Boolean style)
Deprecated.
|
SequenceNode(Tag tag,
java.util.List<Node> value,
DumperOptions.FlowStyle flowStyle) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,Node> |
BaseRepresenter.representedObjects |
Modifier and Type | Method and Description |
---|---|
Node |
BaseRepresenter.represent(java.lang.Object data) |
protected Node |
BaseRepresenter.representData(java.lang.Object data) |
Node |
Represent.representData(java.lang.Object data)
Create a Node
|
Node |
Representer.RepresentJavaBean.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentNull.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentString.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentBoolean.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentNumber.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentList.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentIterator.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentArray.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentPrimitiveArray.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentMap.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentSet.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentDate.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentEnum.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentByteArray.representData(java.lang.Object data) |
Node |
SafeRepresenter.RepresentUuid.representData(java.lang.Object data) |
protected Node |
BaseRepresenter.representMapping(Tag tag,
java.util.Map<?,?> mapping,
DumperOptions.FlowStyle flowStyle) |
protected Node |
BaseRepresenter.representScalar(Tag tag,
java.lang.String value) |
protected Node |
BaseRepresenter.representScalar(Tag tag,
java.lang.String value,
DumperOptions.ScalarStyle style) |
protected Node |
BaseRepresenter.representSequence(Tag tag,
java.lang.Iterable<?> sequence,
DumperOptions.FlowStyle flowStyle) |
Modifier and Type | Method and Description |
---|---|
protected void |
Representer.checkGlobalTag(Property property,
Node node,
java.lang.Object object)
Remove redundant global tag for a type safe (generic) collection if it is the same as defined
by the JavaBean property
|
private void |
Representer.resetTag(java.lang.Class<? extends java.lang.Object> type,
Node node) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Node,java.lang.String> |
Serializer.anchors |
private java.util.Set<Node> |
Serializer.serializedNodes |
Modifier and Type | Method and Description |
---|---|
private void |
Serializer.anchorNode(Node node) |
java.lang.String |
AnchorGenerator.nextAnchor(Node node) |
java.lang.String |
NumberAnchorGenerator.nextAnchor(Node node) |
void |
Serializer.serialize(Node node) |
private void |
Serializer.serializeNode(Node node,
Node parent) |