Class PathTreeFilterHandler


  • public class PathTreeFilterHandler
    extends org.kohsuke.args4j.spi.OptionHandler<TreeFilter>
    Create a TreeFilter to match path names.

    This handler consumes all arguments to the end of the command line, and is meant to be used on an Option of name "--".

    • Constructor Detail

      • PathTreeFilterHandler

        public PathTreeFilterHandler​(org.kohsuke.args4j.CmdLineParser parser,
                                     org.kohsuke.args4j.OptionDef option,
                                     org.kohsuke.args4j.spi.Setter<? super TreeFilter> setter)
        Create a new handler for the command name.

        This constructor is used only by args4j.

        Parameters:
        parser - a CmdLineParser object.
        option - a OptionDef object.
        setter - a Setter object.
    • Method Detail

      • parseArguments

        public int parseArguments​(org.kohsuke.args4j.spi.Parameters params)
                           throws org.kohsuke.args4j.CmdLineException
        Specified by:
        parseArguments in class org.kohsuke.args4j.spi.OptionHandler<TreeFilter>
        Throws:
        org.kohsuke.args4j.CmdLineException
      • getDefaultMetaVariable

        public String getDefaultMetaVariable()
        Specified by:
        getDefaultMetaVariable in class org.kohsuke.args4j.spi.OptionHandler<TreeFilter>