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