1 11 package org.eclipse.jdt.internal.codeassist.select; 12 13 31 32 import org.eclipse.jdt.internal.compiler.ast.*; 33 import org.eclipse.jdt.internal.compiler.lookup.*; 34 35 public class SelectionOnExplicitConstructorCall extends ExplicitConstructorCall { 36 37 public SelectionOnExplicitConstructorCall(int accessMode) { 38 39 super(accessMode); 40 } 41 42 public StringBuffer printStatement(int tab, StringBuffer output) { 43 44 printIndent(tab, output); 45 output.append("<SelectOnExplicitConstructorCall:"); if (qualification != null) qualification.printExpression(0, output).append('.'); 47 if (accessMode == This) { 48 output.append("this("); } else { 50 output.append("super("); } 52 if (arguments != null) { 53 for (int i = 0; i < arguments.length; i++) { 54 if (i > 0) output.append(", "); arguments[i].printExpression(0, output); 56 } 57 } 58 return output.append(")>;"); } 60 61 public void resolve(BlockScope scope) { 62 63 super.resolve(scope); 64 65 if (binding == null || 67 !(binding.isValidBinding() || 68 binding.problemId() == ProblemReasons.NotVisible)) 69 throw new SelectionNodeFound(); 70 else 71 throw new SelectionNodeFound(binding); 72 } 73 } 74 | Popular Tags |