Package graphql.util
Interface NodeAdapter<T>
-
- Type Parameters:
T
- the generic type of object
- All Known Implementing Classes:
AstNodeAdapter
,GraphQLSchemaElementAdapter
@PublicApi public interface NodeAdapter<T>
Adapts an arbitrary class to behave as a node. We are using an Adapter because we don't want to require Nodes to implement a certain Interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<T>>
getNamedChildren(T node)
T
removeChild(T node, NodeLocation location)
T
withNewChildren(T node, java.util.Map<java.lang.String,java.util.List<T>> newChildren)
-