@Override public Void visitMethodInvocation(MethodInvocationTree node, Void unused) { JCMethodInvocation sourceNode = (JCMethodInvocation) node; MethodSymbol callee = (MethodSymbol) TreeInfo.symbol(sourceNode.getMethodSelect()); sourceNode.getArguments().stream(), (formal, actual) -> {
Assert.error("{" + tree + "} is not an argument in the invocation: " + invocation); MethodSymbol exsym = (MethodSymbol) TreeInfo.symbol(invocation.getMethodSelect()); if (exsym == null) { Assert.error("could not determine symbol for {" + invocation + "}");
Assert.error("{" + tree + "} is not an argument in the invocation: " + invocation); MethodSymbol exsym = (MethodSymbol) TreeInfo.symbol(invocation.getMethodSelect()); if (exsym == null) { Assert.error("could not determine symbol for {" + invocation + "}");
List.<JCExpression>nil()).setType(syms.intType); JCSwitch switch1 = make.Switch(hashCodeCall, caseBuffer.toList());
List.<JCExpression>nil()).setType(syms.intType); JCSwitch switch1 = make.Switch(hashCodeCall, caseBuffer.toList());
List<JCTree.JCExpression> argumentExpressions = methodInvocation.getArguments(); java.util.List<String> arguments = getArgumentsType(context, argumentExpressions); context.setArgumentIndex(argumentIndex); JCTree.JCExpression methodSelect = methodInvocation.getMethodSelect();
JCMethodInvocation compareTo = (JCMethodInvocation) parent; JCTree.JCExpression rhs = getOnlyElement(compareTo.getArguments()); compareTo.getStartPosition(), arg.getStartPosition(), String.format("%s.compare(%s", typeName, optionalCast))
make.Select(receiver, impl).setType(calltype), translateArgs(make.Idents(md.params), origErasure.getParameterTypes(), null)) .setType(calltype); JCStatement stat = (origErasure.getReturnType().hasTag(VOID)) ? make.Exec(call)
make.Select(receiver, impl).setType(calltype), translateArgs(make.Idents(md.params), origErasure.getParameterTypes(), null)) .setType(calltype); JCStatement stat = (origErasure.getReturnType().hasTag(VOID)) ? make.Exec(call)
JCExpression methodSelect = ((JCTree.JCMethodInvocation)tree).getMethodSelect(); if( methodSelect instanceof JCTree.JCFieldAccess )
make.Apply( null, make.Select(receiver, impl).setType(calltype), translateArgs(make.Idents(md.params), origErasure.getParameterTypes(), null)) .setType(calltype);
make.Apply( null, make.Select(receiver, impl).setType(calltype), translateArgs(make.Idents(md.params), origErasure.getParameterTypes(), null)) .setType(calltype);
private JCTree replaceExtCall( JCTree.JCMethodInvocation tree, Symbol.MethodSymbol method ) JCExpression methodSelect = tree.getMethodSelect(); if( methodSelect instanceof JCTree.JCFieldAccess ) memberAccess( make, javacElems, extensionFqn ), List.from( newArgs ) ); extCall.setPos( tree.pos ); extCall.type = tree.type; JCTree.JCFieldAccess newMethodSelect = (JCTree.JCFieldAccess)extCall.getMethodSelect(); newMethodSelect.sym = method; newMethodSelect.type = method.type;
@Override public Void visitMethodInvocation(MethodInvocationTree node, Void unused) { JCMethodInvocation sourceNode = (JCMethodInvocation) node; MethodSymbol callee = (MethodSymbol) TreeInfo.symbol(sourceNode.getMethodSelect()); sourceNode.getArguments().stream(), (formal, actual) -> {
private JCTree replaceExtCall( JCTree.JCMethodInvocation tree, Symbol.MethodSymbol method ) JCExpression methodSelect = tree.getMethodSelect(); if( methodSelect instanceof JCTree.JCFieldAccess ) memberAccess( make, javacElems, extensionFqn ), List.from( newArgs ) ); extCall.setPos( tree.pos ); extCall.type = tree.type; JCTree.JCFieldAccess newMethodSelect = (JCTree.JCFieldAccess)extCall.getMethodSelect(); newMethodSelect.sym = method; newMethodSelect.type = method.type;
JavacElements javacElems = _tp.getElementUtil(); JCExpression methodSelect = tree.getMethodSelect(); if( methodSelect instanceof JCTree.JCFieldAccess ) make.Type( symTab.objectType ), List.nil(), tree.getArguments() ); argsArray.type = new Type.ArrayType( symTab.objectType, symTab.arrayClass ); memberAccess( make, javacElems, ReflectionRuntimeMethods.class.getName() + "." + reflectMethodSym.flatName().toString() ), List.from( newArgs ) ); reflectCall.setPos( tree.pos ); reflectCall.type = returnType; JCTree.JCFieldAccess newMethodSelect = (JCTree.JCFieldAccess)reflectCall.getMethodSelect(); newMethodSelect.sym = reflectMethodSym; newMethodSelect.type = reflectMethodSym.type;