Class CommandDetector.Builder
- java.lang.Object
-
- org.sonar.iac.docker.checks.utils.CommandDetector.Builder
-
- Enclosing class:
- CommandDetector
public static class CommandDetector.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
with
public CommandDetector.Builder with(Predicate<String> predicate)
-
with
public CommandDetector.Builder with(Collection<String> firstOf)
-
with
public CommandDetector.Builder with(String expectedString)
-
withOptional
public CommandDetector.Builder withOptional(Predicate<String> predicate)
-
notWith
public CommandDetector.Builder notWith(Predicate<String> predicate)
-
withOptionalRepeating
public CommandDetector.Builder withOptionalRepeating(Predicate<String> predicate)
-
withOptionalRepeatingExcept
public CommandDetector.Builder withOptionalRepeatingExcept(Predicate<String> predicate)
-
withOptionalRepeatingExcept
public CommandDetector.Builder withOptionalRepeatingExcept(String excludedString)
-
withOptionalRepeatingExcept
public CommandDetector.Builder withOptionalRepeatingExcept(Collection<String> excludedStrings)
-
withAnyFlagExcept
public CommandDetector.Builder withAnyFlagExcept(String... excludedFlags)
-
withAnyFlagExcept
public CommandDetector.Builder withAnyFlagExcept(Collection<String> excludedFlags)
-
withAnyFlagFollowedBy
public CommandDetector.Builder withAnyFlagFollowedBy(String... flags)
-
withAnyFlagFollowedBy
public CommandDetector.Builder withAnyFlagFollowedBy(Collection<String> flags)
-
withAnyFlag
public CommandDetector.Builder withAnyFlag()
-
withAnyOptionExcluding
public CommandDetector.Builder withAnyOptionExcluding(Collection<String> excludedFlags)
-
withMultipleUnorderedOptions
public CommandDetector.Builder withMultipleUnorderedOptions(List<OptionPredicate> expectedOptions)
-
withPredicatesFrom
public CommandDetector.Builder withPredicatesFrom(CommandDetector.Builder otherBuilder)
-
build
public CommandDetector build()
-
-