Package com.google.errorprone.refaster
Class UMethodInvocation
- 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.UMethodInvocation
-
- All Implemented Interfaces:
Unifiable<com.sun.source.tree.Tree>
,com.sun.source.tree.ExpressionTree
,com.sun.source.tree.MethodInvocationTree
,com.sun.source.tree.Tree
,com.sun.source.tree.TreeVisitor<Choice<Unifier>,Unifier>
,Serializable
public abstract class UMethodInvocation extends UExpression implements com.sun.source.tree.MethodInvocationTree
UTree
version ofMethodInvocationTree
.- Author:
- [email protected] (Louis Wasserman)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UMethodInvocation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <R,D>
Raccept(com.sun.source.tree.TreeVisitor<R,D> visitor, D data)
static UMethodInvocation
create(UExpression methodSelect, UExpression... arguments)
static UMethodInvocation
create(UExpression methodSelect, List<UExpression> arguments)
abstract com.google.common.collect.ImmutableList<UExpression>
getArguments()
com.sun.source.tree.Tree.Kind
getKind()
abstract UExpression
getMethodSelect()
List<UTree<?>>
getTypeArguments()
com.sun.tools.javac.tree.JCTree.JCMethodInvocation
inline(Inliner inliner)
Choice<Unifier>
visitMethodInvocation(com.sun.source.tree.MethodInvocationTree methodInvocation, 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, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard
-
-
-
-
Method Detail
-
create
public static UMethodInvocation create(UExpression methodSelect, List<UExpression> arguments)
-
create
public static UMethodInvocation create(UExpression methodSelect, UExpression... arguments)
-
getMethodSelect
public abstract UExpression getMethodSelect()
- Specified by:
getMethodSelect
in interfacecom.sun.source.tree.MethodInvocationTree
-
getArguments
public abstract com.google.common.collect.ImmutableList<UExpression> getArguments()
- Specified by:
getArguments
in interfacecom.sun.source.tree.MethodInvocationTree
-
visitMethodInvocation
@Nullable public Choice<Unifier> visitMethodInvocation(com.sun.source.tree.MethodInvocationTree methodInvocation, @Nullable Unifier unifier)
-
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
-
getKind
public com.sun.source.tree.Tree.Kind getKind()
- Specified by:
getKind
in interfacecom.sun.source.tree.Tree
-
getTypeArguments
public List<UTree<?>> getTypeArguments()
- Specified by:
getTypeArguments
in interfacecom.sun.source.tree.MethodInvocationTree
-
inline
public com.sun.tools.javac.tree.JCTree.JCMethodInvocation inline(Inliner inliner) throws CouldNotResolveImportException
- Throws:
CouldNotResolveImportException
-
-