public class StringArgument extends java.lang.Object implements ArgumentProvider<java.lang.String>
| Constructor and Description |
|---|
StringArgument() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
defaultArgName(@NotNull java.lang.reflect.AnnotatedElement element)
Provides a default argument name for this provider.
|
@Nullable java.lang.String |
provide(@NotNull Context ctx,
@NotNull InputArgument arg)
Converts the given
InputArgument into the specific type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalwaysParseQuotes, handlesNullInputArguments, suggest, suggestRich@Nullable
public @Nullable java.lang.String provide(@NotNull
@NotNull Context ctx,
@NotNull
@NotNull InputArgument arg)
throws BladeParseError
ArgumentProviderInputArgument into the specific type.provide in interface ArgumentProvider<java.lang.String>ctx - the command contextarg - the input argumentBladeParseError - if an error occurs during conversion (use BladeParseError.fatal(String) or BladeParseError.recoverable(String).)@Nullable
public @Nullable java.lang.String defaultArgName(@NotNull
@NotNull java.lang.reflect.AnnotatedElement element)
ArgumentProviderdefaultArgName in interface ArgumentProvider<java.lang.String>element - the annotated element (parameter)Name