public class NormalizedField
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NormalizedField.Builder |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias() |
java.util.Map<java.lang.String,java.lang.Object> |
getArguments() |
java.util.List<NormalizedField> |
getChildren() |
java.util.List<NormalizedField> |
getChildren(int includingRelativeLevel) |
GraphQLFieldDefinition |
getFieldDefinition() |
int |
getLevel() |
java.util.List<java.lang.String> |
getListOfResultKeys() |
java.lang.String |
getName()
All merged fields have the same name.
|
GraphQLObjectType |
getObjectType() |
NormalizedField |
getParent() |
java.lang.String |
getResultKey()
Returns the key of this MergedFieldWithType for the overall result.
|
boolean |
isConditional() |
boolean |
isIntrospectionField() |
static NormalizedField.Builder |
newQueryExecutionField() |
java.lang.String |
print() |
java.lang.String |
printDetails() |
java.lang.String |
printFullPath() |
void |
replaceParent(NormalizedField newParent) |
java.lang.String |
toString() |
NormalizedField |
transform(java.util.function.Consumer<NormalizedField.Builder> builderConsumer) |
void |
traverseSubTree(java.util.function.Consumer<NormalizedField> consumer) |
public java.lang.String getName()
WARNING: This is not always the key in the execution result, because of possible aliases. See getResultKey()
public java.lang.String getResultKey()
public java.lang.String getAlias()
public boolean isConditional()
public java.util.Map<java.lang.String,java.lang.Object> getArguments()
public static NormalizedField.Builder newQueryExecutionField()
public GraphQLFieldDefinition getFieldDefinition()
public NormalizedField transform(java.util.function.Consumer<NormalizedField.Builder> builderConsumer)
public GraphQLObjectType getObjectType()
public java.lang.String printDetails()
public java.lang.String print()
public java.lang.String printFullPath()
public java.util.List<java.lang.String> getListOfResultKeys()
public java.util.List<NormalizedField> getChildren()
public int getLevel()
public NormalizedField getParent()
public void replaceParent(NormalizedField newParent)
public boolean isIntrospectionField()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<NormalizedField> getChildren(int includingRelativeLevel)
public void traverseSubTree(java.util.function.Consumer<NormalizedField> consumer)