@Immutable public class GQLFragmentReference extends Object implements GQLFragment
| Constructor and Description |
|---|
GQLFragmentReference(String name,
net.morimekta.providence.descriptor.PMessageDescriptor<?> parentDescriptor,
Map<String,GQLFragmentDefinition> fragmentMap)
A fragment reference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
GQLFragmentDefinition |
getDefinition() |
String |
getName() |
net.morimekta.providence.descriptor.PMessageDescriptor<?> |
getParentDescriptor() |
List<GQLSelection> |
getSelectionSet() |
net.morimekta.providence.descriptor.PMessageDescriptor<?> |
getTypeCondition()
All fragments represent a specific message type of a union
field, or an interface implementation.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisApplicableForgetSelection, hasSelection, hasSelectionPathpublic GQLFragmentReference(@Nonnull String name, @Nonnull net.morimekta.providence.descriptor.PMessageDescriptor<?> parentDescriptor, @Nonnull Map<String,GQLFragmentDefinition> fragmentMap)
name - Name of defined fragment to be referred to.parentDescriptor - Descriptor to the containing message type.fragmentMap - Map of registered fragments, may not be filled yet.@Nullable public GQLFragmentDefinition getDefinition()
@Nonnull public net.morimekta.providence.descriptor.PMessageDescriptor<?> getParentDescriptor()
@Nonnull public net.morimekta.providence.descriptor.PMessageDescriptor<?> getTypeCondition()
GQLFragmentgetTypeCondition in interface GQLFragment@Nonnull public List<GQLSelection> getSelectionSet()
getSelectionSet in interface GQLFragmentgetSelectionSet in interface GQLSelectionCopyright © 2015–2020 morimekta.net. All rights reserved.