Skip to content

Commit b986623

Browse files
author
Lubos Kosco
committed
document abstract source code analyzer, fixes #1724
1 parent 67d7bee commit b986623

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/org/opensolaris/opengrok/analysis/plain/AbstractSourceCodeAnalyzer.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@
3636
/**
3737
*
3838
* @author Lubos Kosco
39+
*
40+
* This class should abstract all analysers that deal with source code.
41+
* Source code is specific that it has definitions and references.
42+
* Source code has custom xref generators, depending on symbols.
43+
* This class should mark the classes that can provide defs and refs.
44+
* NOTE: SymbolTokenizer gets set for #1376 in PlainAnalyzer::analyze
45+
* and not part of this class anymore due to changes in lucene 6 .
46+
*
47+
* Anything shared just for source code analyzers should be here,
48+
* also all interfaces for source code analyzer should start here.
49+
*
50+
* Any child is forced to provide necessary xref and symbol tokenizers,
51+
* if it fails to do so it will automatically behave like PlainAnalyzer.
52+
*
3953
*/
4054
public abstract class AbstractSourceCodeAnalyzer extends PlainAnalyzer {
4155

0 commit comments

Comments
 (0)