Package org.sonar.python.checks.cdk
Class CdkPredicate
- java.lang.Object
-
- org.sonar.python.checks.cdk.CdkPredicate
-
public class CdkPredicate extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate<Expression>isFalse()static Predicate<Expression>isFqn(String fqnValue)static Predicate<Expression>isFqnOf(Collection<String> fqnValues)static Predicate<Expression>isNone()static Predicate<Expression>isString(String expectedValue)static Predicate<Expression>startsWith(String expected)
-
-
-
Method Detail
-
isFalse
public static Predicate<Expression> isFalse()
- Returns:
- Predicate which tests if expression is boolean literal and is set to `false`
-
isNone
public static Predicate<Expression> isNone()
- Returns:
- Predicate which tests if expression is `none`
-
isFqn
public static Predicate<Expression> isFqn(String fqnValue)
- Returns:
- Predicate which tests if expression is a fully qualified name (FQN) and is equal the expected FQN
-
isFqnOf
public static Predicate<Expression> isFqnOf(Collection<String> fqnValues)
- Returns:
- Predicate which tests if expression is a fully qualified name (FQN) and part of the FQN list
-
isString
public static Predicate<Expression> isString(String expectedValue)
- Returns:
- Predicate which tests if expression is a string and is equal the expected value
-
startsWith
public static Predicate<Expression> startsWith(String expected)
- Returns:
- Predicate which tests if expression is a string and starts with the expected value
-
-