@PublicApi public class QueryAppliedDirectiveArgument extends java.lang.Object
QueryAppliedDirective
.
You can think of them as 'instances' of GraphQLArgument
, when applied to a directive on a query element
Modifier and Type | Class and Description |
---|---|
static class |
QueryAppliedDirectiveArgument.Builder |
Modifier and Type | Method and Description |
---|---|
@NotNull InputValueWithState |
getArgumentValue() |
@Nullable Argument |
getDefinition() |
@Nullable java.lang.String |
getDescription()
This will always be null.
|
@NotNull java.lang.String |
getName() |
@NotNull GraphQLInputType |
getType() |
<T> T |
getValue()
This swill give out an internal java value based on the semantics captured
in the
InputValueWithState from getArgumentValue()
Note : You MUST only call this on a QueryAppliedDirectiveArgument that is part of a fully formed schema. |
boolean |
hasSetValue() |
static QueryAppliedDirectiveArgument.Builder |
newArgument() |
static QueryAppliedDirectiveArgument.Builder |
newArgument(QueryAppliedDirectiveArgument existing) |
java.lang.String |
toString() |
QueryAppliedDirectiveArgument |
transform(java.util.function.Consumer<QueryAppliedDirectiveArgument.Builder> builderConsumer)
This helps you transform the current GraphQLArgument into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
@NotNull public @NotNull java.lang.String getName()
@NotNull public @NotNull GraphQLInputType getType()
public boolean hasSetValue()
@NotNull public @NotNull InputValueWithState getArgumentValue()
@Nullable public <T> T getValue()
InputValueWithState
from getArgumentValue()
Note : You MUST only call this on a QueryAppliedDirectiveArgument
that is part of a fully formed schema. We need
all the types to be resolved in order for this work correctly.
Note: This method will return null if the value is not set or explicitly set to null. If you want to know the difference
when "not set" and "set to null" then you can't use this method. Rather you should use getArgumentValue()
and use the InputValueWithState.isNotSet()
methods to decide how to handle those values.T
- the type you want it cast as@Nullable public @Nullable java.lang.String getDescription()
@Nullable public @Nullable Argument getDefinition()
public QueryAppliedDirectiveArgument transform(java.util.function.Consumer<QueryAppliedDirectiveArgument.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic static QueryAppliedDirectiveArgument.Builder newArgument()
public static QueryAppliedDirectiveArgument.Builder newArgument(QueryAppliedDirectiveArgument existing)
public java.lang.String toString()
toString
in class java.lang.Object