I have already read the java index design google doc. But I see the java indexer is based on java model. And I have few problems for that.
Is it possible to build a java index out of Eclipse-plug environment(for example just from a target source folder)? Because I see the Indexer use ResourcesPlugin.getWorkspace()
to scan the Eclipse workspace for initialization part. I want to know whether JDT provides other API to generate Indexer?
ASTParser provides two methods to build AST. createASTs(ICompilationUnit[] compilationUnits, String[] bindingKeys, ASTRequestor requestor, IProgressMonitor monitor)
and createASTs(String[] sourceFilePaths, String[] encodings, String[] bindingKeys,FileASTRequestor requestor, IProgressMonitor monitor)
my working environment is web application and that's why I hope Indexer can also have an alternative way to build like ASTParser. So I can use it as a standalone application instead of Eclipse-plugin application.
[Updated on: Tue, 19 June 2018 03:51]
Report message to a moderator