Package org.sonar.iac.docker.symbols
Class ArgumentResolution
- java.lang.Object
-
- org.sonar.iac.docker.symbols.ArgumentResolution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArgumentResolution.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanis(ArgumentResolution.Status status)static ArgumentResolutionof(Argument argument)Main method of the class, the point of entry to resolveArgumentin order to exploit the result in checks.ArgumentResolution.Statusstatus()Stringvalue()
-
-
-
Method Detail
-
of
public static ArgumentResolution of(@Nullable Argument argument)
Main method of the class, the point of entry to resolveArgumentin 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.
-
value
public String value()
-
status
public ArgumentResolution.Status status()
-
is
public boolean is(ArgumentResolution.Status status)
-
-