Class AbstractTypeMatcher<T extends com.sun.source.tree.Tree>

java.lang.Object
com.google.errorprone.matchers.AbstractTypeMatcher<T>
All Implemented Interfaces:
Matcher<T>, Serializable
Direct Known Subclasses:
IsSameType, IsSubtypeOf

public abstract class AbstractTypeMatcher<T extends com.sun.source.tree.Tree> extends Object implements Matcher<T>
Base class for type matchers.
See Also:
  • Field Details

    • typeToCompareSupplier

      protected Supplier<com.sun.tools.javac.code.Type> typeToCompareSupplier
  • Constructor Details

    • AbstractTypeMatcher

      public AbstractTypeMatcher(Supplier<com.sun.tools.javac.code.Type> typeToCompareSupplier)
    • AbstractTypeMatcher

      public AbstractTypeMatcher(String typeString)
  • Method Details

    • matches

      public abstract boolean matches(T tree, VisitorState state)
      Specified by:
      matches in interface Matcher<T extends com.sun.source.tree.Tree>