Class TypeMatchers
java.lang.Object
org.sonar.plugins.python.api.types.v2.matchers.TypeMatchers
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeMatcherall(List<TypeMatcher> matchers) static TypeMatcherall(Stream<TypeMatcher> matchers) static TypeMatcherall(TypeMatcher... matchers) static TypeMatcherany(List<TypeMatcher> matchers) static TypeMatcherany(Stream<TypeMatcher> matchers) static TypeMatcherany(TypeMatcher... matchers) static TypeMatcherstatic TypeMatcherhasMemberSatisfying(String memberName, TypeMatcher matcher) static TypeMatcherhasTypeSource(TypeSource typeSource) static TypeMatcherisFunctionOwnerSatisfying(TypeMatcher matcher) static TypeMatcherisObjectInstanceOf(String fqn) Checks if the type of the expression is an object type and if its nested type, or its supertypes, matches the given type by equality.static TypeMatcherisObjectOfType(String fqn) static TypeMatcherisObjectSatisfying(TypeMatcher matcher) static TypeMatcherisOrExtendsType(String fqn) static TypeMatcherstatic TypeMatcherisTypeOrSuperTypeSatisfying(TypeMatcher matcher) static TypeMatcherstatic TypeMatcher
-
Method Details
-
all
-
all
-
all
-
any
-
any
-
any
-
withFQN
-
isObjectSatisfying
-
isType
-
isObjectOfType
-
isObjectInstanceOf
Checks if the type of the expression is an object type and if its nested type, or its supertypes, matches the given type by equality.- Parameters:
fqn- The FQN of the type to match by equality- Returns:
- a type matcher
-
isOrExtendsType
-
isTypeOrSuperTypeWithFQN
-
isTypeOrSuperTypeSatisfying
-
isFunctionOwnerSatisfying
-
hasTypeSource
-
hasMember
-
hasMemberSatisfying
-