Class ActionBuilder

    • Field Detail

      • INSTANCE

        public static final ActionBuilder INSTANCE
        The instance of the action builder
      • ACTION_PATTERN

        public static final Pattern ACTION_PATTERN
        The pattern for the action. The format is: <type>(<option>): <value>. Note that the <option> and <value> are optional. Also, the allowed characters of the <type> are alphanumeric, _, - and $. To get the <type>, <option> and <value>, use Matcher.group(int) with the index 1, 3 and 5 respectively.
    • Method Detail

      • build

        public List<Action> build​(Menu menu,
                                  Object object)
        Build a list of actions
        Parameters:
        menu - the menu involved in
        object - the object
        Returns:
        the list of actions