@Override public boolean visitMethodInvocation(MethodInvocation node) { JCExpression methodId; if (node.astOperand() == null) { methodId = (JCExpression) toTree(node.astName()); } else { int start = hasSourceStructures() ? posOfStructure(node, ".", true) : node.astName().getPosition().getStart(); int end = node.astName().getPosition().getEnd(); methodId = setPos(start, end, treeMaker.Select( toExpression(node.astOperand()), toName(node.astName()))); } int start = posOfStructure(node, "(", true); int end = node.getPosition().getEnd(); return set(node, setPos(start, end, treeMaker.Apply( toList(JCExpression.class, node.astMethodTypeArguments()), methodId, toList(JCExpression.class, node.astArguments()) ))); }
@Override public boolean visitMethodInvocation(MethodInvocation node) { JCExpression methodId; if (node.astOperand() == null) { methodId = (JCExpression) toTree(node.astName()); } else { int start = hasSourceStructures() ? posOfStructure(node, ".", true) : node.astName().getPosition().getStart(); int end = node.astName().getPosition().getEnd(); methodId = setPos(start, end, treeMaker.Select( toExpression(node.astOperand()), toName(node.astName()))); } int start = posOfStructure(node, "(", true); int end = node.getPosition().getEnd(); return set(node, setPos(start, end, treeMaker.Apply( toList(JCExpression.class, node.astMethodTypeArguments()), methodId, toList(JCExpression.class, node.astArguments()) ))); }
@Override public boolean visitMethodInvocation(MethodInvocation node) { JCExpression methodId; if (node.astOperand() == null) { methodId = (JCExpression) toTree(node.astName()); } else { int start = hasSourceStructures() ? posOfStructure(node, ".", true) : node.astName().getPosition().getStart(); int end = node.astName().getPosition().getEnd(); methodId = setPos(start, end, treeMaker.Select( toExpression(node.astOperand()), toName(node.astName()))); } int start = posOfStructure(node, "(", true); int end = node.getPosition().getEnd(); return set(node, setPos(start, end, treeMaker.Apply( toList(JCExpression.class, node.astMethodTypeArguments()), methodId, toList(JCExpression.class, node.astArguments()) ))); }