Package graphql.language
Class AstNodeAdapter
- java.lang.Object
-
- graphql.language.AstNodeAdapter
-
- All Implemented Interfaces:
NodeAdapter<Node>
@PublicApi public class AstNodeAdapter extends java.lang.Object implements NodeAdapter<Node>
Adapts an Ast node to the general node from the util package
-
-
Field Summary
Fields Modifier and Type Field Description static AstNodeAdapter
AST_NODE_ADAPTER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
AST_NODE_ADAPTER
public static final AstNodeAdapter AST_NODE_ADAPTER
-
-
Method Detail
-
getNamedChildren
public java.util.Map<java.lang.String,java.util.List<Node>> getNamedChildren(Node node)
- Specified by:
getNamedChildren
in interfaceNodeAdapter<Node>
-
withNewChildren
public Node withNewChildren(Node node, java.util.Map<java.lang.String,java.util.List<Node>> newChildren)
- Specified by:
withNewChildren
in interfaceNodeAdapter<Node>
-
removeChild
public Node removeChild(Node node, NodeLocation location)
- Specified by:
removeChild
in interfaceNodeAdapter<Node>
-
-