Class TypeInferenceMatchers
java.lang.Object
org.sonar.python.semantic.v2.types.TypeInferenceMatchers
This class is the entry point for the TypeMatcher API specifically for type inference.
Compared to the
TypeMatchers class, this API can handle PythonType instances directly.
In case of missing matchers, they should be added to this class, instead of using the constructor directly.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypePredicateany(TypePredicate... predicates) static TypePredicatestatic TypePredicateisObjectOfType(String fqn) static TypePredicateisObjectSatisfying(TypePredicate matcher) static TypePredicateisOrExtendsType(String fqn) static TypePredicateisSelf()static TypePredicatestatic TypePredicate
-
Method Details
-
any
-
isType
-
isObjectSatisfying
-
isObjectOfType
-
isOrExtendsType
-
hasMember
-
isSelf
-
withFQN
-