Class FormatArg

    • Constructor Detail

      • FormatArg

        public FormatArg()
    • Method Detail

      • getArg

        public abstract Arg getArg()
      • getFormatString

        public abstract String getFormatString()
        Returns:
        the format string

        The format string should be either a string with one or more %s. Each %s will be replaced with the string value of getArg()

      • 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