Interface TagResolver.WithoutArguments

  • All Superinterfaces:
    TagResolver
    All Known Subinterfaces:
    TagResolver.Single
    Enclosing interface:
    TagResolver
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface TagResolver.WithoutArguments
    extends TagResolver
    A tag resolver that only handles tags which do not take arguments.
    Since:
    4.10.0
    • Method Detail

      • resolve

        @Nullable
        @Nullable Tag resolve​(@NotNull
                              @NotNull String name)
        Resolve a tag based only on the provided name.
        Parameters:
        name - the provided name
        Returns:
        a tag, if any is known.
        Since:
        4.10.0
      • has

        default boolean has​(@NotNull
                            @NotNull String name)
        Check if this resolver knows of a tag.
        Specified by:
        has in interface TagResolver
        Parameters:
        name - the tag name
        Returns:
        whether this tag is present
        Since:
        4.10.0
      • resolve

        @Nullable
        default @Nullable Tag resolve​(@NotNull
                                      @NotNull String name,
                                      @NotNull
                                      @NotNull ArgumentQueue arguments,
                                      @NotNull
                                      @NotNull Context ctx)
                               throws ParsingException
        Description copied from interface: TagResolver
        Gets a tag from this resolver based on the current state.
        Specified by:
        resolve in interface TagResolver
        Parameters:
        name - the tag name
        arguments - the arguments passed to the tag
        ctx - the parse context
        Returns:
        a possible tag
        Throws:
        ParsingException - if the provided arguments are invalid