public class SimplifyingNodeTransformer extends Object implements NodeTransformer
A Node element converter between ComplexNode and SimpleNode.
All conversions are information-preserving.
| Modifier and Type | Field and Description |
|---|---|
static SimplifyingNodeTransformer |
INSTANCE |
| Constructor and Description |
|---|
SimplifyingNodeTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Node |
fromComplexNode(ComplexNode complexNode)
Attempts to transform
ComplexNode to the most memory-efficient SimpleNode. |
Node |
simplify(Node node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoComplexNodepublic static final SimplifyingNodeTransformer INSTANCE
public Node fromComplexNode(ComplexNode complexNode)
Attempts to transform ComplexNode to the most memory-efficient SimpleNode.
fromComplexNode in interface NodeTransformerCopyright © 2020. All rights reserved.