@Override
 public boolean visit(SuperConstructorInvocation node) {
   newExpression(node);
   for (Expression arg : node.getArguments()) {
     arg.accept(this);
   }
   extractUnsequenced(node);
   return false;
 }
Пример #2
0
 @Override
 public void endVisit(SuperConstructorInvocation node) {
   Expression outerExpression = node.getExpression();
   if (outerExpression == null) {
     return;
   }
   node.setExpression(null);
   ITypeBinding outerExpressionType = outerExpression.getTypeBinding();
   GeneratedMethodBinding binding =
       new GeneratedMethodBinding(node.getMethodBinding().getMethodDeclaration());
   node.setMethodBinding(binding);
   node.getArguments().add(0, outerExpression);
   binding.addParameter(0, outerExpressionType);
 }
Пример #3
0
 @Override
 public void endVisit(SuperConstructorInvocation node) {
   maybeCastArguments(node.getArguments(), node.getMethodBinding());
 }