Class ParseResult<S extends CommandSource>

java.lang.Object
studio.mevera.imperat.command.tree.ParseResult<S>

public final class ParseResult<S extends CommandSource> extends Object
  • Method Details

    • successful

      public static <S extends CommandSource> ParseResult<S> successful(Object value, @Nullable @Nullable Argument<S> argument, @Nullable @Nullable String rawInput, int inputPosition, int nextDepth)
    • failed

      public static <S extends CommandSource> ParseResult<S> failed(Throwable ex)
    • isSuccessful

      public boolean isSuccessful()
    • isFailure

      public boolean isFailure()
    • getParsedValue

      @Nullable public @Nullable Object getParsedValue()
    • getArgument

      @Nullable public @Nullable Argument<S> getArgument()
    • getRawInput

      @Nullable public @Nullable String getRawInput()
    • getInputPosition

      public int getInputPosition()
    • getNextDepth

      public int getNextDepth()
    • canReuseInExecution

      public boolean canReuseInExecution()
    • toParsedArgument

      @NotNull public @NotNull ParsedArgument<S> toParsedArgument()