Class AbstractCollectionIncompatibleTypeMatcher.MatchResult
java.lang.Object
com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- Enclosing class:
AbstractCollectionIncompatibleTypeMatcher
Encapsulates the result of matching a
Collection.contains(java.lang.Object)
-like call, including the
source and target types.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildFix()
create
(com.sun.source.tree.ExpressionTree sourceTree, com.sun.tools.javac.code.Type sourceType, com.sun.tools.javac.code.Type targetType, AbstractCollectionIncompatibleTypeMatcher matcher) matcher()
abstract com.sun.source.tree.ExpressionTree
abstract com.sun.tools.javac.code.Type
abstract com.sun.tools.javac.code.Type
-
Constructor Details
-
MatchResult
public MatchResult()
-
-
Method Details
-
sourceTree
public abstract com.sun.source.tree.ExpressionTree sourceTree() -
sourceType
public abstract com.sun.tools.javac.code.Type sourceType() -
targetType
public abstract com.sun.tools.javac.code.Type targetType() -
matcher
-
create
public static AbstractCollectionIncompatibleTypeMatcher.MatchResult create(com.sun.source.tree.ExpressionTree sourceTree, com.sun.tools.javac.code.Type sourceType, com.sun.tools.javac.code.Type targetType, AbstractCollectionIncompatibleTypeMatcher matcher) -
message
-
buildFix
-