Class GuardedBySymbolResolver

java.lang.Object
com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
All Implemented Interfaces:
GuardedByBinder.Resolver

public class GuardedBySymbolResolver
extends Object
implements GuardedByBinder.Resolver
A symbol resolver used while binding guardedby expressions from string literals.
Author:
cushon@google.com (Liam Miller-Cushon)
  • 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.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

      public VisitorState 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 interface GuardedByBinder.Resolver
    • resolveMethod

      public com.sun.tools.javac.code.Symbol.MethodSymbol resolveMethod​(com.sun.source.tree.MethodInvocationTree node, Name name)
      Specified by:
      resolveMethod in interface GuardedByBinder.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 interface GuardedByBinder.Resolver
    • resolveSelect

      public com.sun.tools.javac.code.Symbol resolveSelect​(GuardedByExpression base, com.sun.source.tree.MemberSelectTree node)
      Specified by:
      resolveSelect in interface GuardedByBinder.Resolver
    • resolveTypeLiteral

      public com.sun.tools.javac.code.Symbol resolveTypeLiteral​(com.sun.source.tree.ExpressionTree expr)
      Specified by:
      resolveTypeLiteral in interface GuardedByBinder.Resolver
    • resolveEnclosingClass

      public com.sun.tools.javac.code.Symbol resolveEnclosingClass​(com.sun.source.tree.ExpressionTree expr)
      Specified by:
      resolveEnclosingClass in interface GuardedByBinder.Resolver