Package graphql.language
Class Directive.Builder
- java.lang.Object
-
- graphql.language.Directive.Builder
-
- All Implemented Interfaces:
NodeBuilder
- Enclosing class:
- Directive
public static final class Directive.Builder extends java.lang.Object implements NodeBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Directive.Builder
additionalData(java.lang.String key, java.lang.String value)
Directive.Builder
additionalData(java.util.Map<java.lang.String,java.lang.String> additionalData)
Directive.Builder
argument(Argument argument)
Directive.Builder
arguments(java.util.List<Argument> arguments)
Directive
build()
Directive.Builder
comments(java.util.List<Comment> comments)
Directive.Builder
ignoredChars(IgnoredChars ignoredChars)
Directive.Builder
name(java.lang.String name)
Directive.Builder
sourceLocation(SourceLocation sourceLocation)
-
-
-
Method Detail
-
sourceLocation
public Directive.Builder sourceLocation(SourceLocation sourceLocation)
- Specified by:
sourceLocation
in interfaceNodeBuilder
-
comments
public Directive.Builder comments(java.util.List<Comment> comments)
- Specified by:
comments
in interfaceNodeBuilder
-
name
public Directive.Builder name(java.lang.String name)
-
arguments
public Directive.Builder arguments(java.util.List<Argument> arguments)
-
argument
public Directive.Builder argument(Argument argument)
-
ignoredChars
public Directive.Builder ignoredChars(IgnoredChars ignoredChars)
- Specified by:
ignoredChars
in interfaceNodeBuilder
-
additionalData
public Directive.Builder additionalData(java.util.Map<java.lang.String,java.lang.String> additionalData)
- Specified by:
additionalData
in interfaceNodeBuilder
-
additionalData
public Directive.Builder additionalData(java.lang.String key, java.lang.String value)
- Specified by:
additionalData
in interfaceNodeBuilder
-
build
public Directive build()
-
-