| Modifier and Type | Method | 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 | Description |
|---|---|---|
java.lang.Iterable<Node> |
Yaml.composeAll(java.io.Reader yaml) |
Parse all YAML documents in a stream and produce corresponding
representation trees.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Event> |
Yaml.serialize(Node data) |
Serialize the representation tree into Events.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected Node |
Composer.composeKeyNode(MappingNode node) |
|
protected Node |
Composer.composeMappingNode(java.lang.String anchor) |
|
protected Node |
Composer.composeScalarNode(java.lang.String anchor) |
|
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 | 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.ConstructScalar.construct(Node nnode) |
|
java.lang.Object |
Constructor.ConstructSequence.construct(Node node) |
|
java.lang.Object |
Constructor.ConstructYamlObject.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructUndefined.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlBinary.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlBool.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlFloat.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlInt.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlMap.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlNull.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlNumber.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlOmap.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlPairs.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlSeq.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlSet.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlStr.construct(Node node) |
|
java.lang.Object |
SafeConstructor.ConstructYamlTimestamp.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.ConstructSequence.construct2ndStep(Node node,
java.lang.Object object) |
|
void |
Constructor.ConstructYamlObject.construct2ndStep(Node node,
java.lang.Object object) |
|
void |
SafeConstructor.ConstructYamlMap.construct2ndStep(Node node,
java.lang.Object object) |
|
void |
SafeConstructor.ConstructYamlSeq.construct2ndStep(Node node,
java.lang.Object data) |
|
void |
SafeConstructor.ConstructYamlSet.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.Class<?> |
Constructor.getClassForNode(Node node) |
|
protected Construct |
BaseConstructor.getConstructor(Node node) |
Get the constructor to construct the Node.
|
| Modifier and Type | Method | 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 | Description |
|---|---|---|
class |
AnchorNode |
|
class |
CollectionNode |
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 | Method | Description |
|---|---|---|
Node |
NodeTuple.getKeyNode() |
Key node.
|
Node |
AnchorNode.getRealNode() |
|
Node |
NodeTuple.getValueNode() |
Value node.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Node> |
SequenceNode.getValue() |
Returns the elements in this sequence.
|
| Constructor | Description |
|---|---|
AnchorNode(Node realNode) |
|
NodeTuple(Node keyNode,
Node valueNode) |
| Constructor | Description |
|---|---|
SequenceNode(Tag tag,
boolean resolved,
java.util.List<Node> value,
Mark startMark,
Mark endMark,
java.lang.Boolean flowStyle) |
|
SequenceNode(Tag tag,
java.util.List<Node> value,
java.lang.Boolean flowStyle) |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Map<java.lang.Object,Node> |
BaseRepresenter.representedObjects |
| Modifier and Type | Method | 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) |
|
protected Node |
BaseRepresenter.representMapping(Tag tag,
java.util.Map<?,?> mapping,
java.lang.Boolean flowStyle) |
|
protected Node |
BaseRepresenter.representScalar(Tag tag,
java.lang.String value) |
|
protected Node |
BaseRepresenter.representScalar(Tag tag,
java.lang.String value,
java.lang.Character style) |
|
protected Node |
BaseRepresenter.representSequence(Tag tag,
java.lang.Iterable<?> sequence,
java.lang.Boolean flowStyle) |
| Modifier and Type | Method | 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
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
AnchorGenerator.nextAnchor(Node node) |
|
java.lang.String |
NumberAnchorGenerator.nextAnchor(Node node) |
|
void |
Serializer.serialize(Node node) |