@PublicApi public class AstNodeAdapter extends java.lang.Object implements NodeAdapter<Node>
Modifier and Type | Field and Description |
---|---|
static AstNodeAdapter |
AST_NODE_ADAPTER |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<Node>> |
getNamedChildren(Node node) |
Node |
removeChild(Node node,
NodeLocation location) |
Node |
withNewChildren(Node node,
java.util.Map<java.lang.String,java.util.List<Node>> newChildren) |
public static final AstNodeAdapter AST_NODE_ADAPTER
public java.util.Map<java.lang.String,java.util.List<Node>> getNamedChildren(Node node)
getNamedChildren
in interface NodeAdapter<Node>
public Node withNewChildren(Node node, java.util.Map<java.lang.String,java.util.List<Node>> newChildren)
withNewChildren
in interface NodeAdapter<Node>
public Node removeChild(Node node, NodeLocation location)
removeChild
in interface NodeAdapter<Node>