Class CommandArgumentSearch


  • public class CommandArgumentSearch
    extends CommandArgument
    The search command argument type. Builds Search objects for use by a SearchHandler.
    • Constructor Detail

      • CommandArgumentSearch

        public CommandArgumentSearch()
    • Method Detail

      • cast

        public ChainPriority cast​(ChainState state)
        Parses a search lexically; does NOT execute any search or validate arguments. This behavior defaults to the lexical parser statically defined in the Search class, on the parse method.
        Specified by:
        cast in class CommandArgument
        Parameters:
        state - State to parse. Since this argument parses multiple lines, it is entirely consumed.
        Returns:
        ChainPriority instance that was determined.
        Throws:
        java.lang.IllegalArgumentException - if there was a problem lexically parsing the chain state.