Uses of Class
com.google.errorprone.bugpatterns.threadsafety.GuardedByFlags
Packages that use GuardedByFlags
-
Uses of GuardedByFlags in com.google.errorprone.bugpatterns.threadsafety
Methods in com.google.errorprone.bugpatterns.threadsafety that return GuardedByFlagsModifier and TypeMethodDescriptionstatic GuardedByFlags
GuardedByFlags.allOn()
static GuardedByFlags
GuardedByFlags.fromFlags
(ErrorProneFlags flags) Methods in com.google.errorprone.bugpatterns.threadsafety with parameters of type GuardedByFlagsModifier and TypeMethodDescriptionstatic void
HeldLockAnalyzer.analyze
(VisitorState state, HeldLockAnalyzer.LockEventListener listener, Predicate<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
(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.common.collect.ImmutableSet
<String> GuardedByUtils.getGuardValues
(com.sun.tools.javac.code.Symbol sym, GuardedByFlags flags) static com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils.GuardedByValidationResult
GuardedByUtils.isGuardedByValid
(Tree tree, VisitorState state, GuardedByFlags flags) Constructors in com.google.errorprone.bugpatterns.threadsafety with parameters of type GuardedByFlagsModifierConstructorDescriptionThreadSafeAnalysis
(BugChecker bugChecker, VisitorState state, WellKnownThreadSafety wellKnownThreadSafety, GuardedByFlags flags)