@PublicApi public class AstTransformerUtil extends java.lang.Object
Constructor and Description |
---|
AstTransformerUtil() |
Modifier and Type | Method and Description |
---|---|
static TraversalControl |
changeNode(TraverserContext<Node> context,
Node changedNode)
Helper method to be used inside a
NodeVisitor to actually a change a node.
It generates a new AstZipper and replaces the current accumulated AstMultiZipper including the new
AstZipper . |
public static TraversalControl changeNode(TraverserContext<Node> context, Node changedNode)
NodeVisitor
to actually a change a node.
It generates a new AstZipper
and replaces the current accumulated AstMultiZipper
including the new
AstZipper
.context
- changedNode
-