Interface ResultUsePolicyAnalyzer<E,​C>

    • Method Detail

      • canonicalName

        String canonicalName()
        The canonical name of the check.
      • allNames

        Set<String> allNames()
        Returns all of the name strings that this checker should respect as part of a @SuppressWarnings annotation.
      • isCovered

        boolean isCovered​(E expression,
                          C context)
        Returns whether this checker makes any determination about whether the given expression's return value should be used or not. Most checkers either determine that an expression is CRV or make no determination.
      • getMatchMetadata

        default com.google.common.collect.ImmutableMap<String,​? extends Object> getMatchMetadata​(E expression,
                                                                                                       C context)
        Returns a map of optional metadata about why this check matched the given expression.