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
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescription<R,
D> R accept
(com.sun.source.tree.TreeVisitor<R, D> visitor, D data) static UMemberSelect
create
(UExpression expression, CharSequence identifier, UType type) abstract UExpression
abstract StringName
com.sun.source.tree.Tree.Kind
getKind()
com.sun.tools.javac.tree.JCTree.JCExpression
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
-
Field Details
-
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
-
getExpression
- Specified by:
getExpression
in interfacecom.sun.source.tree.MemberSelectTree
-
getIdentifier
- Specified by:
getIdentifier
in interfacecom.sun.source.tree.MemberSelectTree
-
visitMemberSelect
-
visitIdentifier
-
getKind
public com.sun.source.tree.Tree.Kind getKind()- Specified by:
getKind
in interfacecom.sun.source.tree.Tree
-
accept
public <R,D> R accept(com.sun.source.tree.TreeVisitor<R, D> visitor, D data) - Specified by:
accept
in interfacecom.sun.source.tree.Tree
-
inline
public com.sun.tools.javac.tree.JCTree.JCExpression inline(Inliner inliner) throws CouldNotResolveImportException - Throws:
CouldNotResolveImportException
-