Class ArgumentResolution


  • public class ArgumentResolution
    extends Object
    Class dedicated to resolving Argument, which is a complex object used to represent most parameters of instruction.
    • Method Detail

      • of

        public static ArgumentResolution of​(@Nullable
                                            Argument argument)
        Main method of the class, the point of entry to resolve Argument in order to exploit the result in checks. In docker, most instruction can expect one or even multiple arguments, which can be a mix of strings, quotes string with spaces, variable reference with or without modifier, ect. This method will provide an ArgumentResolution object with the result of the tentative of resolution: the status and the String value. The quotes and double quotes in string literals are striped by default.
      • ofWithoutStrippingQuotes

        public static ArgumentResolution ofWithoutStrippingQuotes​(@Nullable
                                                                  Argument argument)
        The method is similar to ArgumentResolution#of but there is a control of strip quotes or double quotes in string literal.
      • value

        public String value()
      • isResolved

        public boolean isResolved()
      • isUnresolved

        public boolean isUnresolved()
      • isEmpty

        public boolean isEmpty()