Class CompositeArg

  • All Implemented Interfaces:
    AddsToRuleKey, Arg

    public abstract class CompositeArg
    extends Object
    implements Arg
    CompositeArg holds a list of args and appends them all to the command-line. It does not add any separator between the args, so if that's necessary it should be added via StringArgs in the list of Args.
    • Constructor Detail

      • CompositeArg

        public CompositeArg()
    • Method Detail

      • appendToCommandLine

        public void appendToCommandLine​(java.util.function.Consumer<String> consumer,
                                        SourcePathResolverAdapter pathResolver)
        Description copied from interface: Arg
        Feed the contents of the Arg to the supplied consumer. This call may feed any number of elements (including zero) into the consumer. This is only ever safe to call when the rule is running, as it may do things like resolving source paths.
        Specified by:
        appendToCommandLine in interface Arg
      • of

        public static CompositeArg of​(<Arg> args)