1 11 package org.eclipse.jdt.core.dom; 12 13 import org.eclipse.jdt.core.ICompilationUnit; 14 15 34 public abstract class ASTRequestor { 35 36 42 CompilationUnitResolver compilationUnitResolver = null; 43 44 47 protected ASTRequestor() { 48 } 50 51 62 public void acceptAST(ICompilationUnit source, CompilationUnit ast) { 63 } 65 66 79 public void acceptBinding(String bindingKey, IBinding binding) { 80 } 82 83 107 public final IBinding[] createBindings(String [] bindingKeys) { 108 int length = bindingKeys.length; 109 IBinding[] result = new IBinding[length]; 110 for (int i = 0; i < length; i++) { 111 result[i] = null; 112 if (this.compilationUnitResolver != null) { 113 result[i] = this.compilationUnitResolver.createBinding(bindingKeys[i]); 114 } 115 } 116 return result; 117 } 118 } 119 | Popular Tags |