Class AbstractNode<T extends Node>
java.lang.Object
graphql.language.AbstractNode<T>
- All Implemented Interfaces:
Node<T>, Serializable
- Direct Known Subclasses:
AbstractDescribedNode, Argument, ArrayValue, BooleanValue, Directive, DirectiveLocation, Document, EnumValue, Field, FloatValue, FragmentDefinition, FragmentSpread, InlineFragment, IntValue, ListType, NonNullType, NullValue, ObjectField, ObjectValue, OperationDefinition, OperationTypeDefinition, SelectionSet, StringValue, TypeName, VariableDefinition, VariableReference
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<Comment> private final IgnoredCharsprivate final SourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionAbstractNode(SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) AbstractNode(SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Node
accept, deepCopy, getChildren, getNamedChildren, isEqualTo, withNewChildren
-
Field Details
-
sourceLocation
-
comments
-
ignoredChars
-
additionalData
-
-
Constructor Details
-
AbstractNode
public AbstractNode(SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars) -
AbstractNode
public AbstractNode(SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData)
-
-
Method Details
-
getSourceLocation
- Specified by:
getSourceLocationin interfaceNode<T extends Node>- Returns:
- the source location where this node occurs
-
getComments
-
getIgnoredChars
Description copied from interface:NodeThe chars which are ignored by the parser. (Before and after the current node)- Specified by:
getIgnoredCharsin interfaceNode<T extends Node>- Returns:
- the ignored chars
-
getAdditionalData
Description copied from interface:NodeA node can have a map of additional data associated with it.NOTE: The reason this is a map of strings is so the Node can stay an immutable object, which Map<String,Object> would not allow say.
- Specified by:
getAdditionalDatain interfaceNode<T extends Node>- Returns:
- the map of additional data about this node
-
deepCopy
-
deepCopy
-