DefaultBindingResolver(LookupEnvironment lookupEnvironment, WorkingCopyOwner workingCopyOwner, BindingTables bindingTables, boolean isRecoveringBindings, boolean fromJavaProject) { this.newAstToOldAst = new HashMap(); this.astNodesToBlockScope = new HashMap(); this.bindingsToAstNodes = new HashMap(); this.bindingTables = bindingTables; this.scope = new CompilationUnitScope(new CompilationUnitDeclaration(null, null, -1), lookupEnvironment); this.workingCopyOwner = workingCopyOwner; this.isRecoveringBindings = isRecoveringBindings; this.fromJavaProject = fromJavaProject; }
DefaultBindingResolver(LookupEnvironment lookupEnvironment, WorkingCopyOwner workingCopyOwner, BindingTables bindingTables, boolean isRecoveringBindings, boolean fromJavaProject) { this.newAstToOldAst = new HashMap(); this.astNodesToBlockScope = new HashMap(); this.bindingsToAstNodes = new HashMap(); this.bindingTables = bindingTables; this.scope = new CompilationUnitScope(new CompilationUnitDeclaration(null, null, -1), lookupEnvironment); this.workingCopyOwner = workingCopyOwner; this.isRecoveringBindings = isRecoveringBindings; this.fromJavaProject = fromJavaProject; }
DefaultBindingResolver(LookupEnvironment lookupEnvironment, WorkingCopyOwner workingCopyOwner, BindingTables bindingTables, boolean isRecoveringBindings, boolean fromJavaProject) { this.newAstToOldAst = new HashMap(); this.astNodesToBlockScope = new HashMap(); this.bindingsToAstNodes = new HashMap(); this.bindingTables = bindingTables; this.scope = new CompilationUnitScope(new CompilationUnitDeclaration(null, null, -1), lookupEnvironment); this.workingCopyOwner = workingCopyOwner; this.isRecoveringBindings = isRecoveringBindings; this.fromJavaProject = fromJavaProject; }
DefaultBindingResolver(LookupEnvironment lookupEnvironment, WorkingCopyOwner workingCopyOwner, BindingTables bindingTables, boolean isRecoveringBindings, boolean fromJavaProject) { this.newAstToOldAst = new HashMap(); this.astNodesToBlockScope = new HashMap(); this.bindingsToAstNodes = new HashMap(); this.bindingTables = bindingTables; this.scope = new CompilationUnitScope(new CompilationUnitDeclaration(null, null, -1), lookupEnvironment); this.workingCopyOwner = workingCopyOwner; this.isRecoveringBindings = isRecoveringBindings; this.fromJavaProject = fromJavaProject; }
DefaultBindingResolver(LookupEnvironment lookupEnvironment, WorkingCopyOwner workingCopyOwner, BindingTables bindingTables, boolean isRecoveringBindings, boolean fromJavaProject) { this.newAstToOldAst = new HashMap(); this.astNodesToBlockScope = new HashMap(); this.bindingsToAstNodes = new HashMap(); this.bindingTables = bindingTables; this.scope = new CompilationUnitScope(new CompilationUnitDeclaration(null, null, -1), lookupEnvironment); this.workingCopyOwner = workingCopyOwner; this.isRecoveringBindings = isRecoveringBindings; this.fromJavaProject = fromJavaProject; }
DefaultBindingResolver(LookupEnvironment lookupEnvironment, WorkingCopyOwner workingCopyOwner, BindingTables bindingTables, boolean isRecoveringBindings, boolean fromJavaProject) { this.newAstToOldAst = new HashMap(); this.astNodesToBlockScope = new HashMap(); this.bindingsToAstNodes = new HashMap(); this.bindingTables = bindingTables; this.scope = new CompilationUnitScope(new CompilationUnitDeclaration(null, null, -1), lookupEnvironment); this.workingCopyOwner = workingCopyOwner; this.isRecoveringBindings = isRecoveringBindings; this.fromJavaProject = fromJavaProject; }
private static Parser makeDummyParser(ProblemReporter reporter, String mainTypeName) { Parser parser = new Parser(reporter, false); CompilationResult cr = new CompilationResult((mainTypeName + ".java").toCharArray(), 0, 1, 0); parser.compilationUnit = new CompilationUnitDeclaration(reporter, cr, 0); return parser; }
private static Parser makeDummyParser(ProblemReporter reporter, String mainTypeName) { Parser parser = new Parser(reporter, false); CompilationResult cr = new CompilationResult((mainTypeName + ".java").toCharArray(), 0, 1, 0); parser.compilationUnit = new CompilationUnitDeclaration(reporter, cr, 0); return parser; }
private static Parser makeDummyParser(ProblemReporter reporter, String mainTypeName) { Parser parser = new Parser(reporter, false); CompilationResult cr = new CompilationResult((mainTypeName + ".java").toCharArray(), 0, 1, 0); parser.compilationUnit = new CompilationUnitDeclaration(reporter, cr, 0); return parser; }
private CompilationUnitDeclaration convert(IModule module, CompilationResult compilationResult) throws JavaModelException { this.unit = new CompilationUnitDeclaration(this.problemReporter, compilationResult, 0); // not filled at this point ModuleDescriptionInfo moduleInfo = (ModuleDescriptionInfo) module; org.eclipse.jdt.core.ICompilationUnit cuHandle = moduleInfo.getHandle().getCompilationUnit(); this.cu = (ICompilationUnit) cuHandle; // always parse, because (a) dietParse is always sufficient, (b) we don't yet have the necessary conversion methods for module directives return new Parser(this.problemReporter, true).dietParse(this.cu, compilationResult); }
public void parsePackage(char[] regionSource) { try { initialize(); goForPackageDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parseMethod(char[] regionSource) { try { initialize(); goForGenericMethodDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parseField(char[] regionSource) { try { initialize(); goForFieldDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parseField(char[] regionSource) { try { initialize(); goForFieldDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parseInitializer(char[] regionSource) { try { initialize(); goForInitializer(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parseType(char[] regionSource) { try { initialize(); goForTypeDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /**
public void parseField(char[] regionSource) { try { initialize(); goForFieldDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parsePackage(char[] regionSource) { try { initialize(); goForPackageDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parseInitializer(char[] regionSource) { try { initialize(); goForInitializer(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*
public void parsePackage(char[] regionSource) { try { initialize(); goForPackageDeclaration(); this.referenceContext = this.compilationUnit = new CompilationUnitDeclaration( problemReporter(), new CompilationResult(regionSource, 0, 0, this.options.maxProblemsPerUnit), regionSource.length); this.scanner.resetTo(0, regionSource.length); this.scanner.setSource(regionSource); parse(); } catch (AbortCompilation ex) { // ignore this exception } } /*