Interface HeldLockAnalyzer.LockEventListener

Enclosing class:
HeldLockAnalyzer

public static interface HeldLockAnalyzer.LockEventListener
Listener interface for accesses to guarded members.
  • Method Summary

    Modifier and Type Method Description
    void handleGuardedAccess​(com.sun.source.tree.ExpressionTree tree, GuardedByExpression guard, com.google.errorprone.bugpatterns.threadsafety.HeldLockSet locks)
    Handles a guarded member access.
  • Method Details

    • handleGuardedAccess

      void handleGuardedAccess​(com.sun.source.tree.ExpressionTree tree, GuardedByExpression guard, com.google.errorprone.bugpatterns.threadsafety.HeldLockSet locks)
      Handles a guarded member access.
      Parameters:
      tree - The member access expression.
      guard - The member's guard expression.
      locks - The set of held locks.