Class DataFetchingFieldSelectionSetImpl.SelectedFieldImpl
java.lang.Object
graphql.schema.DataFetchingFieldSelectionSetImpl.SelectedFieldImpl
- All Implemented Interfaces:
SelectedField
- Enclosing class:
DataFetchingFieldSelectionSetImpl
private static class DataFetchingFieldSelectionSetImpl.SelectedFieldImpl
extends Object
implements SelectedField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutableNormalizedFieldprivate final Stringprivate final Stringprivate final GraphQLSchemaprivate final DataFetchingFieldSelectionSet -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSelectedFieldImpl(String simpleQualifiedName, String fullyQualifiedName, ExecutableNormalizedField executableNormalizedField, GraphQLSchema schema) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringbeforeLastSlash(String name) booleangetAlias()The selected field has a more complex type qualified name which is the path of field names to it as well as the object type of the parent.intgetLevel()getName()This will return the parent of the selected field OR null if there is no single parent, it that field was a top level field OR the parent was a non concrete field.The selected field has a simple qualified name which is the path of field names to it.The result key is either the field query alias OR the field name in that preference ordergetType()inthashCode()booleanprivate SelectedFieldmkParent(ExecutableNormalizedField executableNormalizedField) toString()
-
Field Details
-
qualifiedName
-
fullyQualifiedName
-
selectionSet
-
executableNormalizedField
-
schema
-
-
Constructor Details
-
SelectedFieldImpl
private SelectedFieldImpl(String simpleQualifiedName, String fullyQualifiedName, ExecutableNormalizedField executableNormalizedField, GraphQLSchema schema)
-
-
Method Details
-
mkParent
-
beforeLastSlash
-
getName
- Specified by:
getNamein interfaceSelectedField- Returns:
- the simple name of the selected field
-
getQualifiedName
Description copied from interface:SelectedFieldThe selected field has a simple qualified name which is the path of field names to it. For example `payments/amount`.- Specified by:
getQualifiedNamein interfaceSelectedField- Returns:
- the simple qualified name of the selected field
-
getFullyQualifiedName
Description copied from interface:SelectedFieldThe selected field has a more complex type qualified name which is the path of field names to it as well as the object type of the parent. For example `[Invoice, Statement].payments/[Payment].amount`- Specified by:
getFullyQualifiedNamein interfaceSelectedField- Returns:
- the fully qualified name of the selected field
-
getFieldDefinitions
- Specified by:
getFieldDefinitionsin interfaceSelectedField- Returns:
- the field runtime definition
-
getType
- Specified by:
getTypein interfaceSelectedField- Returns:
- the type of this field
-
getObjectTypes
- Specified by:
getObjectTypesin interfaceSelectedField- Returns:
- the object types of this SelectedField
-
getObjectTypeNames
- Specified by:
getObjectTypeNamesin interfaceSelectedField- Returns:
- The list of all object types
-
getArguments
- Specified by:
getArgumentsin interfaceSelectedField- Returns:
- a map of the arguments to this selected field
-
getLevel
public int getLevel()- Specified by:
getLevelin interfaceSelectedField- Returns:
- the level of the selected field within the query
-
isConditional
public boolean isConditional()- Specified by:
isConditionalin interfaceSelectedField- Returns:
- whether the field is conditionally present.
-
getAlias
- Specified by:
getAliasin interfaceSelectedField- Returns:
- the alias of the selected field or null if not alias was used
-
getResultKey
Description copied from interface:SelectedFieldThe result key is either the field query alias OR the field name in that preference order- Specified by:
getResultKeyin interfaceSelectedField- Returns:
- the result key of the selected field
-
getParentField
Description copied from interface:SelectedFieldThis will return the parent of the selected field OR null if there is no single parent, it that field was a top level field OR the parent was a non concrete field.- Specified by:
getParentFieldin interfaceSelectedField- Returns:
- the fields selected parent or null if there is not one
-
getSelectionSet
- Specified by:
getSelectionSetin interfaceSelectedField- Returns:
- a sub selection set (if it has any)
-
equals
-
hashCode
-
toString
-