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) |
ComplexNode |
toComplexNode(Node node) |
public static final SimplifyingNodeTransformer INSTANCE
public Node fromComplexNode(ComplexNode complexNode)
Attempts to transform ComplexNode to the most memory-efficient SimpleNode.
fromComplexNode in interface NodeTransformerpublic ComplexNode toComplexNode(Node node)
toComplexNode in interface NodeTransformerCopyright © 2024. All rights reserved.