Package graphql.language
Class NodeUtil
java.lang.Object
graphql.language.NodeUtil
Helper class for working with
Node
s-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallDirectivesByName
(List<Directive> directives) static void
assertNewChildrenAreEmpty
(NodeChildrenContainer newChildren) static <T extends NamedNode<T>>
TfindNodeByName
(List<T> namedNodes, String name) static Map
<String, FragmentDefinition> getFragmentsByName
(Document document) static NodeUtil.GetOperationResult
getOperation
(Document document, String operationName) nodeByName
(List<T> nameNode) static Node
removeChild
(Node node, NodeLocation childLocationToRemove)
-
Constructor Details
-
NodeUtil
public NodeUtil()
-
-
Method Details
-
findNodeByName
-
allDirectivesByName
-
nodeByName
-
getFragmentsByName
-
getOperation
-
assertNewChildrenAreEmpty
-
removeChild
-