Package org.sonar.python.checks
Class CheckUtils
- java.lang.Object
-
- org.sonar.python.checks.CheckUtils
-
public class CheckUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanareEquivalent(Tree leftTree, Tree rightTree)static booleanclassHasInheritance(ClassDef classDef)static booleancontainsCallToLocalsFunction(Tree tree)static ClassDefgetParentClassDef(Tree tree)static booleanisConstant(Expression condition)static booleanisConstantCollectionLiteral(Expression condition)static booleanisImmutableConstant(Expression condition)static booleanisNone(InferredType type)
-
-
-
Method Detail
-
areEquivalent
public static boolean areEquivalent(@Nullable Tree leftTree, @Nullable Tree rightTree)
-
classHasInheritance
public static boolean classHasInheritance(ClassDef classDef)
-
containsCallToLocalsFunction
public static boolean containsCallToLocalsFunction(Tree tree)
-
isConstant
public static boolean isConstant(Expression condition)
-
isImmutableConstant
public static boolean isImmutableConstant(Expression condition)
-
isConstantCollectionLiteral
public static boolean isConstantCollectionLiteral(Expression condition)
-
isNone
public static boolean isNone(InferredType type)
-
-