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 aCollection.contains(java.lang.Object)
-like call, including the source and target types.
-
-
Constructor Summary
Constructors Constructor Description MatchResult()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 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()
-
-
-
Method Detail
-
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
public abstract AbstractCollectionIncompatibleTypeMatcher 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)
-
-