Class GuardedBySymbolResolver
java.lang.Object
com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
- All Implemented Interfaces:
GuardedByBinder.Resolver
A symbol resolver used while binding guardedby expressions from string literals.
- Author:
- cushon@google.com (Liam Miller-Cushon)
-
Method Summary
Modifier and TypeMethodDescriptioncom.sun.tools.javac.util.Context
context()
com.sun.tools.javac.code.Symbol.ClassSymbol
static GuardedBySymbolResolver
from
(com.sun.source.tree.Tree tree, VisitorState visitorState) static GuardedBySymbolResolver
from
(com.sun.tools.javac.code.Symbol.ClassSymbol owner, com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver.MethodInfo method, com.sun.source.tree.CompilationUnitTree compilationUnit, com.sun.tools.javac.util.Context context, com.sun.source.tree.Tree leaf, VisitorState visitorState) @Nullable com.sun.tools.javac.code.Symbol
resolveEnclosingClass
(com.sun.source.tree.ExpressionTree expr) com.sun.tools.javac.code.Symbol
resolveIdentifier
(com.sun.source.tree.IdentifierTree node) com.sun.tools.javac.code.Symbol
resolveMemberReference
(GuardedByExpression base, com.sun.source.tree.MemberReferenceTree node) com.sun.tools.javac.code.Symbol.MethodSymbol
resolveMethod
(com.sun.source.tree.MethodInvocationTree node, GuardedByExpression base, Name identifier) com.sun.tools.javac.code.Symbol.MethodSymbol
resolveMethod
(com.sun.source.tree.MethodInvocationTree node, Name name) com.sun.tools.javac.code.Symbol
resolveSelect
(GuardedByExpression base, com.sun.source.tree.MemberSelectTree node) @Nullable com.sun.tools.javac.code.Symbol
resolveTypeLiteral
(com.sun.source.tree.ExpressionTree expr)
-
Method Details
-
from
public static GuardedBySymbolResolver from(com.sun.source.tree.Tree tree, VisitorState visitorState) -
from
public static GuardedBySymbolResolver from(com.sun.tools.javac.code.Symbol.ClassSymbol owner, com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver.MethodInfo method, com.sun.source.tree.CompilationUnitTree compilationUnit, com.sun.tools.javac.util.Context context, com.sun.source.tree.Tree leaf, VisitorState visitorState) -
context
public com.sun.tools.javac.util.Context context() -
visitorState
-
enclosingClass
public com.sun.tools.javac.code.Symbol.ClassSymbol enclosingClass() -
resolveIdentifier
public com.sun.tools.javac.code.Symbol resolveIdentifier(com.sun.source.tree.IdentifierTree node) - Specified by:
resolveIdentifier
in interfaceGuardedByBinder.Resolver
-
resolveMethod
public com.sun.tools.javac.code.Symbol.MethodSymbol resolveMethod(com.sun.source.tree.MethodInvocationTree node, Name name) - Specified by:
resolveMethod
in interfaceGuardedByBinder.Resolver
-
resolveMethod
public com.sun.tools.javac.code.Symbol.MethodSymbol resolveMethod(com.sun.source.tree.MethodInvocationTree node, GuardedByExpression base, Name identifier) - Specified by:
resolveMethod
in interfaceGuardedByBinder.Resolver
-
resolveSelect
public com.sun.tools.javac.code.Symbol resolveSelect(GuardedByExpression base, com.sun.source.tree.MemberSelectTree node) - Specified by:
resolveSelect
in interfaceGuardedByBinder.Resolver
-
resolveMemberReference
public com.sun.tools.javac.code.Symbol resolveMemberReference(GuardedByExpression base, com.sun.source.tree.MemberReferenceTree node) - Specified by:
resolveMemberReference
in interfaceGuardedByBinder.Resolver
-
resolveTypeLiteral
public @Nullable com.sun.tools.javac.code.Symbol resolveTypeLiteral(com.sun.source.tree.ExpressionTree expr) - Specified by:
resolveTypeLiteral
in interfaceGuardedByBinder.Resolver
-
resolveEnclosingClass
public @Nullable com.sun.tools.javac.code.Symbol resolveEnclosingClass(com.sun.source.tree.ExpressionTree expr) - Specified by:
resolveEnclosingClass
in interfaceGuardedByBinder.Resolver
-