All Implemented Interfaces:
Processor, OptionConfiguration

public class SkipDefsChecker extends BaseTypeChecker
A test checker that skips the variable declarations whose names start with "skipped".
  • Constructor Details

    • SkipDefsChecker

      public SkipDefsChecker()
  • Method Details

    • shouldSkipDefs

      public boolean shouldSkipDefs(VariableTree tree)
      Description copied from class: SourceChecker
      Returns true if the variable declaration should not be checked: neither the declaration nor its initializer, including any lambda or class in the initializer. Code that uses the variable is still checked against its type. The default implementation returns false; subclasses may override it.
      Overrides:
      shouldSkipDefs in class SourceChecker
      Parameters:
      tree - variable declaration to potentially skip
      Returns:
      true if checker should not type-check tree