Class HeldLockAnalyzer


  • public final class HeldLockAnalyzer
    extends Object
    A method body analyzer. Responsible for tracking the set of held locks, and checking accesses to guarded members.
    Author:
    [email protected] (Liam Miller-Cushon)
    • Method Detail

      • analyze

        public static void analyze​(VisitorState state,
                                   HeldLockAnalyzer.LockEventListener listener,
                                   com.google.common.base.Predicate<com.sun.source.tree.Tree> isSuppressed,
                                   GuardedByFlags flags,
                                   boolean reportMissingGuards)
        Analyzes a method body, tracking the set of held locks and checking accesses to guarded members.