Class UMemberSelect

java.lang.Object
com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
com.google.errorprone.refaster.UTree<com.sun.tools.javac.tree.JCTree.JCExpression>
com.google.errorprone.refaster.UExpression
com.google.errorprone.refaster.UMemberSelect
All Implemented Interfaces:
Unifiable<com.sun.source.tree.Tree>, com.sun.source.tree.ExpressionTree, com.sun.source.tree.MemberSelectTree, com.sun.source.tree.Tree, com.sun.source.tree.TreeVisitor<Choice<Unifier>,Unifier>, Serializable

public abstract class UMemberSelect extends UExpression implements com.sun.source.tree.MemberSelectTree
UTree version of MemberSelectTree.
Author:
lowasser@google.com (Louis Wasserman)
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.source.tree.Tree

    com.sun.source.tree.Tree.Kind
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Use of this string as an expression in a member select will cause this method select to be inlined as an identifier.

    Fields inherited from class com.sun.source.util.SimpleTreeVisitor

    DEFAULT_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <R, D> R
    accept(com.sun.source.tree.TreeVisitor<R,D> visitor, D data)
     
    create(UExpression expression, CharSequence identifier, UType type)
     
    abstract UExpression
     
    abstract StringName
     
    com.sun.source.tree.Tree.Kind
     
    com.sun.tools.javac.tree.JCTree.JCExpression
    inline(Inliner inliner)
     
    visitIdentifier(com.sun.source.tree.IdentifierTree ident, Unifier unifier)
     
    visitMemberSelect(com.sun.source.tree.MemberSelectTree fieldAccess, Unifier unifier)
     

    Methods inherited from class com.google.errorprone.refaster.UExpression

    negate

    Methods inherited from class com.google.errorprone.refaster.UTree

    defaultAction, unify

    Methods inherited from class com.sun.source.util.SimpleTreeVisitor

    visit, visit, visitAnnotatedType, visitAnnotation, visitAnyPattern, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitConstantCaseLabel, visitContinue, visitDeconstructionPattern, visitDefaultCaseLabel, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPatternCaseLabel, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSwitchExpression, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONVERT_TO_IDENT

      public static final String CONVERT_TO_IDENT
      Use of this string as an expression in a member select will cause this method select to be inlined as an identifier. I.e., "".foo will be inlined as foo.
      See Also:
  • Constructor Details

    • UMemberSelect

      public UMemberSelect()
  • Method Details

    • create

      public static UMemberSelect create(UExpression expression, CharSequence identifier, UType type)
    • getExpression

      public abstract UExpression getExpression()
      Specified by:
      getExpression in interface com.sun.source.tree.MemberSelectTree
    • getIdentifier

      public abstract StringName getIdentifier()
      Specified by:
      getIdentifier in interface com.sun.source.tree.MemberSelectTree
    • visitMemberSelect

      public Choice<Unifier> visitMemberSelect(com.sun.source.tree.MemberSelectTree fieldAccess, Unifier unifier)
      Specified by:
      visitMemberSelect in interface com.sun.source.tree.TreeVisitor<Choice<Unifier>,Unifier>
      Overrides:
      visitMemberSelect in class com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
    • visitIdentifier

      public Choice<Unifier> visitIdentifier(com.sun.source.tree.IdentifierTree ident, Unifier unifier)
      Specified by:
      visitIdentifier in interface com.sun.source.tree.TreeVisitor<Choice<Unifier>,Unifier>
      Overrides:
      visitIdentifier in class com.sun.source.util.SimpleTreeVisitor<Choice<Unifier>,Unifier>
    • getKind

      public com.sun.source.tree.Tree.Kind getKind()
      Specified by:
      getKind in interface com.sun.source.tree.Tree
    • accept

      public <R, D> R accept(com.sun.source.tree.TreeVisitor<R,D> visitor, D data)
      Specified by:
      accept in interface com.sun.source.tree.Tree
    • inline

      public com.sun.tools.javac.tree.JCTree.JCExpression inline(Inliner inliner) throws CouldNotResolveImportException
      Throws:
      CouldNotResolveImportException