Class AbstractCollectionIncompatibleTypeMatcher.MatchResult
java.lang.Object
com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
- Enclosing class:
- AbstractCollectionIncompatibleTypeMatcher
public abstract static class AbstractCollectionIncompatibleTypeMatcher.MatchResult extends Object
Encapsulates the result of matching a
Collection.contains(java.lang.Object)
-like call, including the
source and target types.-
Constructor Summary
Constructors Constructor Description MatchResult()
-
Method Summary
Modifier and Type Method Description Optional<Fix>
buildFix()
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)
abstract AbstractCollectionIncompatibleTypeMatcher
matcher()
String
message(String sourceType, String targetType)
abstract com.sun.source.tree.ExpressionTree
sourceTree()
abstract com.sun.tools.javac.code.Type
sourceType()
abstract com.sun.tools.javac.code.Type
targetType()
-
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
-