Uses of Class
com.google.errorprone.bugpatterns.threadsafety.GuardedByFlags
-
Uses of GuardedByFlags in com.google.errorprone.bugpatterns.threadsafety
Modifier and TypeMethodDescriptionstatic void
HeldLockAnalyzer.analyze
(VisitorState state, HeldLockAnalyzer.LockEventListener listener, Predicate<com.sun.source.tree.Tree> isSuppressed, GuardedByFlags flags) Analyzes a method body, tracking the set of held locks and checking accesses to guarded members.static Optional
<GuardedByExpression> GuardedByBinder.bindExpression
(com.sun.tools.javac.tree.JCTree.JCExpression exp, VisitorState visitorState, GuardedByFlags flags) Creates aGuardedByExpression
from a bound AST node, or returnsOptional.empty()
if the AST node doesn't correspond to a 'simple' lock expression.static @Nullable com.sun.tools.javac.code.Symbol
GuardedByUtils.bindGuardedByString
(com.sun.source.tree.Tree tree, String guard, VisitorState visitorState, GuardedByFlags flags) static Optional
<GuardedByExpression> GuardedByBinder.bindString
(String string, GuardedBySymbolResolver resolver, GuardedByFlags flags) Creates aGuardedByExpression
from a string, given the resolution context.static Optional
<GuardedByExpression> HeldLockAnalyzer.ExpectedLockCalculator.from
(com.sun.tools.javac.tree.JCTree.JCExpression guardedMemberExpression, GuardedByExpression guard, VisitorState state, GuardedByFlags flags) Determine the lock expression that needs to be held when accessing a specific guarded member.static com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils.GuardedByValidationResult
GuardedByUtils.isGuardedByValid
(com.sun.source.tree.Tree tree, VisitorState state, GuardedByFlags flags)