Uses of Class
com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
-
Packages that use GuardedByExpression Package Description com.google.errorprone.bugpatterns.threadsafety -
-
Uses of GuardedByExpression in com.google.errorprone.bugpatterns.threadsafety
Subclasses of GuardedByExpression in com.google.errorprone.bugpatterns.threadsafety Modifier and Type Class Description static class
GuardedByExpression.ClassLiteral
A 'class' literal: ClassName.classstatic class
GuardedByExpression.Erroneous
A guarded by expression that could not be resolved.static class
GuardedByExpression.LocalVariable
A local variable (or parameter), resolved as part of a lock access expression.static class
GuardedByExpression.Select
The member access expression for a field or method.static class
GuardedByExpression.ThisLiteral
A simple 'this literal.static class
GuardedByExpression.TypeLiteral
The base expression for a static member select on a class literal (e.g.Methods in com.google.errorprone.bugpatterns.threadsafety that return GuardedByExpression Modifier and Type Method Description abstract GuardedByExpression
GuardedByExpression.Select. base()
Methods in com.google.errorprone.bugpatterns.threadsafety that return types with arguments of type GuardedByExpression Modifier and Type Method Description 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 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.Methods in com.google.errorprone.bugpatterns.threadsafety with parameters of type GuardedByExpression Modifier and Type Method Description protected 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.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)
-