@Override public ImportReference createAssistPackageReference(char[][] tokens, long[] positions){ return new SelectionOnPackageReference(tokens, positions); } @Override
@Override protected JavadocParser createJavadocParser() { return new SelectionJavadocParser(this); } @Override
@Override public NameReference createQualifiedAssistNameReference(char[][] previousIdentifiers, char[] assistName, long[] positions){ return new SelectionOnQualifiedNameReference( previousIdentifiers, assistName, positions); } @Override
/** * Resolve selected node if not null and throw exception to let clients know * that it has been found. * * @throws SelectionNodeFound */ @Override public void resolve(ClassScope scope) { internalResolve(scope); }
@Override public TypeReference createQualifiedAssistTypeReference(char[][] previousIdentifiers, char[] assistName, long[] positions){ return new SelectionOnQualifiedTypeReference( previousIdentifiers, assistName, positions); } @Override
@Override protected SelectionParser createSnapShotParser() { return new SelectionParser(this.problemReporter); } @Override
@Override public TypeReference createSingleAssistTypeReference(char[] assistName, long position) { return new SelectionOnSingleTypeReference(assistName, position); } @Override
@Override public TypeReference createParameterizedSingleAssistTypeReference(TypeReference[] typeArguments, char[] assistName, long position) { return new SelectionOnParameterizedSingleTypeReference(assistName, typeArguments, position); } public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult, int start, int end) {
public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult, int start, int end) { this.selectionStart = start; this.selectionEnd = end; SelectionScanner selectionScanner = (SelectionScanner)this.scanner; selectionScanner.selectionIdentifier = null; selectionScanner.selectionStart = start; selectionScanner.selectionEnd = end; return this.dietParse(sourceUnit, compilationResult); } @Override
@Override public void initializeScanner(){ this.scanner = new SelectionScanner(this.options.sourceLevel); } @Override
@Override public void aboutToResolve(Scope scope) { getTypeBinding(scope.parent); // step up from the ClassScope } @Override
public TypeReference createParameterizedQualifiedAssistTypeReference( char[][] tokens, TypeReference[][] typeArguments, char[] assistname, TypeReference[] assistTypeArguments, long[] positions) { return new SelectionOnParameterizedQualifiedTypeReference(tokens, assistname, typeArguments, assistTypeArguments, positions); } public NameReference createSingleAssistNameReference(char[] assistName, long position) {
@Override public ModuleDeclaration createAssistModuleDeclaration(CompilationResult compilationResult, char[][] tokens, long[] positions) { return new SelectionOnModuleDeclaration(compilationResult, tokens, positions); } @Override
@Override public ImportReference createAssistPackageVisibilityReference(char[][] tokens, long[] positions){ return new SelectionOnPackageVisibilityReference(tokens, positions); } @Override
/** * Resolve selected node if not null and throw exception to let clients know * that it has been found. * * @throws SelectionNodeFound */ @Override public void resolve(MethodScope scope) { internalResolve(scope); }
public TypeReference createQualifiedAssistTypeReference(char[][] previousIdentifiers, char[] assistName, long[] positions){ return new SelectionOnQualifiedTypeReference( previousIdentifiers, assistName, positions); } public TypeReference createParameterizedQualifiedAssistTypeReference(
/** * Resolve selected node if not null and throw exception to let clients know * that it has been found. * * @throws SelectionNodeFound */ public void resolve(MethodScope scope) { internalResolve(scope); }
public TypeReference createQualifiedAssistTypeReference(char[][] previousIdentifiers, char[] assistName, long[] positions){ return new SelectionOnQualifiedTypeReference( previousIdentifiers, assistName, positions); } public TypeReference createParameterizedQualifiedAssistTypeReference(
/** * Resolve selected node if not null and throw exception to let clients know * that it has been found. * * @throws SelectionNodeFound */ public void resolve(ClassScope scope) { internalResolve(scope); }
/** * Resolve selected node if not null and throw exception to let clients know * that it has been found. * * @throws SelectionNodeFound */ public void resolve(MethodScope scope) { internalResolve(scope); }