Interface OptionTraverser

    • Method Detail

      • handleBooleanOption

        void handleBooleanOption​(BooleanOption option,
                                 OptionTraversalPath path)
        Handles the encountered boolean option.
        Parameters:
        option - the option to handle
        path - the property path so far
      • handleClassOption

        void handleClassOption​(ClassOption option,
                               OptionTraversalPath path)
        Handles the encountered class option. Precedence over argument option.
        Parameters:
        option - the option to handle
        path - the property path so far
      • handleArgumentOption

        void handleArgumentOption​(AbstractArgumentOption option,
                                  OptionTraversalPath path)
        Handles the encountered argument option.
        Parameters:
        option - the option to handle
        path - the property path so far
      • canRecurse

        boolean canRecurse​(Class cls)
        Returns whether the traverser can recurse the specified class (base class from a ClassOption).
        Parameters:
        cls - the class to determine for whether recursing is possible or not
        Returns:
        true if to traverse the options recursively
      • canRecurse

        boolean canRecurse​(Object obj)
        Returns whether the traverser can recurse the specified object.
        Parameters:
        obj - the Object to determine for whether recursing is possible or not
        Returns:
        true if to traverse the options recursively