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