Class DataFetchingFieldSelectionSetImpl.SelectedFieldImpl

    • Constructor Detail

      • SelectedFieldImpl

        private SelectedFieldImpl​(java.lang.String simpleQualifiedName,
                                  java.lang.String fullyQualifiedName,
                                  ExecutableNormalizedField executableNormalizedField,
                                  GraphQLSchema schema)
    • Method Detail

      • beforeLastSlash

        private java.lang.String beforeLastSlash​(java.lang.String name)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface SelectedField
        Returns:
        the simple name of the selected field
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Description copied from interface: SelectedField
        The selected field has a simple qualified name which is the path of field names to it. For example `payments/amount`.
        Specified by:
        getQualifiedName in interface SelectedField
        Returns:
        the simple qualified name of the selected field
      • getFullyQualifiedName

        public java.lang.String getFullyQualifiedName()
        Description copied from interface: SelectedField
        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. For example `[Invoice, Statement].payments/[Payment].amount`
        Specified by:
        getFullyQualifiedName in interface SelectedField
        Returns:
        the fully qualified name of the selected field
      • getObjectTypeNames

        public java.util.List<java.lang.String> getObjectTypeNames()
        Specified by:
        getObjectTypeNames in interface SelectedField
        Returns:
        The list of all object types
      • getArguments

        public java.util.Map<java.lang.String,​java.lang.Object> getArguments()
        Specified by:
        getArguments in interface SelectedField
        Returns:
        a map of the arguments to this selected field
      • getLevel

        public int getLevel()
        Specified by:
        getLevel in interface SelectedField
        Returns:
        the level of the selected field within the query
      • isConditional

        public boolean isConditional()
        Specified by:
        isConditional in interface SelectedField
        Returns:
        whether the field is conditionally present.
      • getAlias

        public java.lang.String getAlias()
        Specified by:
        getAlias in interface SelectedField
        Returns:
        the alias of the selected field or null if not alias was used
      • getResultKey

        public java.lang.String getResultKey()
        Description copied from interface: SelectedField
        The result key is either the field query alias OR the field name in that preference order
        Specified by:
        getResultKey in interface SelectedField
        Returns:
        the result key of the selected field
      • getParentField

        public SelectedField getParentField()
        Description copied from interface: SelectedField
        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.
        Specified by:
        getParentField in interface SelectedField
        Returns:
        the fields selected parent or null if there is not one
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object