Class GQLIntrospection
- java.lang.Object
-
- net.morimekta.providence.graphql.gql.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGQLIntrospection.FieldIntrospeciton fields supported by providence-graphql.
-
Constructor Summary
Constructors Constructor Description GQLIntrospection(GQLIntrospection.Field field, java.lang.String alias, net.morimekta.providence.PMessage arguments, java.util.List<GQLSelection> selectionSet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GQLIntrospection.FieldfindFieldByName(java.lang.String name)Find introspection field by name.java.lang.StringgetAlias()net.morimekta.providence.PMessagegetArguments()GQLIntrospection.FieldgetField()java.util.List<GQLSelection>getSelectionSet()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.graphql.gql.GQLSelection
getSelection, hasSelection
-
-
-
-
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()
-
getField
@Nonnull public GQLIntrospection.Field getField()
-
getSelectionSet
public java.util.List<GQLSelection> getSelectionSet()
- Specified by:
getSelectionSetin interfaceGQLSelection- Returns:
- List if selections contained within this selection.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-