Class GQLIntrospection

  • All Implemented Interfaces:
    GQLSelection

    @Immutable
    public class GQLIntrospection
    extends java.lang.Object
    implements GQLSelection
    A introspection is very much like a 'normal' field, but has special meaning to graphql. Note that all field names that start with __ are reserved for introspection.
    • Constructor Detail

      • GQLIntrospection

        public GQLIntrospection​(@Nonnull
                                GQLIntrospection.Field field,
                                @Nullable
                                java.lang.String alias,
                                @Nullable
                                net.morimekta.providence.PMessage arguments,
                                @Nullable
                                java.util.List<GQLSelection> selectionSet)
        Parameters:
        field - Name of introspection field.
        alias - Introspection alias. Only possible / allowed on root type introspection.
        arguments - Arguments for general introspection.
        selectionSet - The introspection selection set.
    • Method Detail

      • findFieldByName

        public static GQLIntrospection.Field findFieldByName​(java.lang.String name)
        Find introspection field by name.
        Parameters:
        name - The name of field to find.
        Returns:
        The introspection field, or null if not found.
      • getArguments

        @Nullable
        public net.morimekta.providence.PMessage getArguments()
      • getAlias

        @Nullable
        public java.lang.String getAlias()
      • toString

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