class GraphQL::Language::NameOnlyNode
- GraphQL::Language::NameOnlyNode
- GraphQL::Language::ASTNode
- Reference
- Object
Overview
Base class for nodes whose only value is a name (no child nodes or other scalars)
Direct Known Subclasses
- GraphQL::Language::AEnum
- GraphQL::Language::NullValue
- GraphQL::Language::TypeName
- GraphQL::Language::VariableIdentifier
Defined in:
graphql/language/nodes.crConstant Summary
-
VALUES =
[{name, String}] of Tuple(Symbol, Object.class)
-
Base class for nodes whose only value is a name (no child nodes or other scalars)
-
VISITS =
[] of Tuple(Symbol, Array(Symbol))
-
Base class for nodes whose only value is a name (no child nodes or other scalars)
Constructors
-
.new(name, **rest)
Base class for nodes whose only value is a name (no child nodes or other scalars)
Class Method Summary
-
.values
Base class for nodes whose only value is a name (no child nodes or other scalars)
Macro Summary
-
accessors(name, type, default)
Base class for nodes whose only value is a name (no child nodes or other scalars)
-
traverse(name, *values)
Base class for nodes whose only value is a name (no child nodes or other scalars)
-
values(args)
Base class for nodes whose only value is a name (no child nodes or other scalars)
Instance Method Summary
-
#==(other : GraphQL::Language::NameOnlyNode)
Base class for nodes whose only value is a name (no child nodes or other scalars)
-
#clone
Returns a copy of
self
with all instance variables cloned. - #name : String
- #name=(name : String)
-
#values
Base class for nodes whose only value is a name (no child nodes or other scalars)
-
#visit(name, visited_ids = [] of UInt64, block = Proc(ASTNode, ASTNode | ::Nil).new do
end)
Recursively apply the given block to each node that gets visited with the given key which nodes get traverses for a given key can be set on a class via the:
traverse :name, :child_1, :child2
macro.
Instance methods inherited from class GraphQL::Language::ASTNode
==(other)
==,
clone
clone,
values
values
Class methods inherited from class GraphQL::Language::ASTNode
values
values
Macros inherited from class GraphQL::Language::ASTNode
accessors(name, type, default)
accessors,
make_value_methods
make_value_methods,
traverse(name, *values)
traverse,
values(args)
values
Constructor Detail
Base class for nodes whose only value is a name (no child nodes or other scalars)
Class Method Detail
Macro Detail
Base class for nodes whose only value is a name (no child nodes or other scalars)
Base class for nodes whose only value is a name (no child nodes or other scalars)
Base class for nodes whose only value is a name (no child nodes or other scalars)
Instance Method Detail
Base class for nodes whose only value is a name (no child nodes or other scalars)
Recursively apply the given block to each
node that gets visited with the given key
which nodes get traverses for a given key
can be set on a class via the:
traverse :name, :child_1, :child2
macro. If no children are defined for a
given traversal path name the block is invoked
only with self.ode that gets visited with the given key
which nodes get traverses for a given key
can be set on a class via the:
traverse :name, :child_1, :child2
macro. If no children are defined for a
given traversal path name the block is invoked
only with self.