Interface CommandLineArgsBuilderApi

  • All Superinterfaces:
    com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable, com.google.devtools.build.lib.skylarkinterface.SkylarkValue
    All Known Implementing Classes:
    CommandLineArgsBuilder

    public interface CommandLineArgsBuilderApi
    extends com.google.devtools.build.lib.skylarkinterface.SkylarkValue
    Struct for creating more efficient and validated lists of arguments to pass to actions' command lines. Exposed via ctx.actions.args()
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CommandLineArgsBuilderApi add​(Object argNameOrValue, Object value, String formatString, com.google.devtools.build.lib.events.Location location)  
      CommandLineArgsBuilderApi addAll​(com.google.devtools.build.lib.syntax.SkylarkList<?> values, String formatString, com.google.devtools.build.lib.events.Location location)  
      • Methods inherited from interface com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable

        debugPrint, repr, str
      • Methods inherited from interface com.google.devtools.build.lib.skylarkinterface.SkylarkValue

        isHashable, isImmutable
    • Method Detail

      • add

        CommandLineArgsBuilderApi add​(Object argNameOrValue,
                                      Object value,
                                      String formatString,
                                      com.google.devtools.build.lib.events.Location location)
                               throws com.google.devtools.build.lib.syntax.EvalException
        Throws:
        com.google.devtools.build.lib.syntax.EvalException
      • addAll

        CommandLineArgsBuilderApi addAll​(com.google.devtools.build.lib.syntax.SkylarkList<?> values,
                                         String formatString,
                                         com.google.devtools.build.lib.events.Location location)
                                  throws com.google.devtools.build.lib.syntax.EvalException
        Throws:
        com.google.devtools.build.lib.syntax.EvalException