Uses of Class
com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
-
Uses of GuardedByExpression in com.google.errorprone.bugpatterns.threadsafety
Modifier and TypeClassDescriptionstatic class
A 'class' literal: ClassName.classstatic class
A guarded by expression that could not be resolved.static class
A local variable (or parameter), resolved as part of a lock access expression.static class
The member access expression for a field or method.static class
A simple 'this literal.static class
The base expression for a static member select on a class literal (e.g.Modifier and TypeMethodDescriptionabstract GuardedByExpression
GuardedByExpression.Select.base()
GuardedByExpression.Select.root()
Finds thisGuardedByExpression.Select
's nearest non-Select ancestor.Modifier and TypeMethodDescriptionstatic 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 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.Modifier and TypeMethodDescriptionprotected Description
GuardedByChecker.checkGuardedAccess
(com.sun.source.tree.Tree tree, GuardedByExpression guard, com.google.errorprone.bugpatterns.threadsafety.HeldLockSet locks, VisitorState state) static GuardedByExpression.Select
GuardedByExpression.Select.create
(GuardedByExpression base, com.sun.tools.javac.code.Symbol sym, com.sun.tools.javac.code.Type type) 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.void
HeldLockAnalyzer.LockEventListener.handleGuardedAccess
(com.sun.source.tree.ExpressionTree tree, GuardedByExpression guard, com.google.errorprone.bugpatterns.threadsafety.HeldLockSet locks) Handles a guarded member access.com.sun.tools.javac.code.Symbol
GuardedByBinder.Resolver.resolveMemberReference
(GuardedByExpression base, com.sun.source.tree.MemberReferenceTree node) com.sun.tools.javac.code.Symbol
GuardedBySymbolResolver.resolveMemberReference
(GuardedByExpression base, com.sun.source.tree.MemberReferenceTree node) com.sun.tools.javac.code.Symbol.MethodSymbol
GuardedByBinder.Resolver.resolveMethod
(com.sun.source.tree.MethodInvocationTree node, GuardedByExpression base, Name identifier) com.sun.tools.javac.code.Symbol.MethodSymbol
GuardedBySymbolResolver.resolveMethod
(com.sun.source.tree.MethodInvocationTree node, GuardedByExpression base, Name identifier) com.sun.tools.javac.code.Symbol
GuardedByBinder.Resolver.resolveSelect
(GuardedByExpression base, com.sun.source.tree.MemberSelectTree node) com.sun.tools.javac.code.Symbol
GuardedBySymbolResolver.resolveSelect
(GuardedByExpression base, com.sun.source.tree.MemberSelectTree node)