Class EiffelAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
- All Implemented Interfaces:
Closeable
,AutoCloseable
Represents an analyzer for the Eiffel language.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengrok.indexer.analysis.AbstractAnalyzer
AbstractAnalyzer.Genre
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
-
Field Summary
Fields inherited from class org.opengrok.indexer.analysis.AbstractAnalyzer
countsAggregator, ctags, DUMMY_READER, factory, foldingEnabled, project, scopesEnabled, symbolTokenizerFactory
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EiffelAnalyzer
(AnalyzerFactory factory) Creates a new instance ofEiffelAnalyzer
. -
Method Summary
Modifier and TypeMethodDescriptionSubclasses should override to return the case-insensitive name aligning with either a built-in Universal Ctags language name or an OpenGrok custom language name.protected int
Gets a version number to be used to tag processed documents so that re-analysis can be re-done later if a stored version number is different from the current implementation.protected JFlexXref
Creates a wrappedEiffelXref
instance.Methods inherited from class org.opengrok.indexer.analysis.plain.PlainAnalyzer
analyze, getReader
Methods inherited from class org.opengrok.indexer.analysis.TextAnalyzer
writeXref
Methods inherited from class org.opengrok.indexer.analysis.FileAnalyzer
addNumLinesLOC, createComponents, getFileTypeName, getVersionNo, normalize, supportsScopes
Methods inherited from class org.opengrok.indexer.analysis.AbstractAnalyzer
getFactory, getGenre, setCountsAggregator, setCtags, setFoldingEnabled, setProject, setScopesEnabled
Methods inherited from class org.apache.lucene.analysis.Analyzer
attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, initReader, initReaderForNormalization, normalize, tokenStream, tokenStream
-
Constructor Details
-
EiffelAnalyzer
Creates a new instance ofEiffelAnalyzer
.- Parameters:
factory
- instance
-
-
Method Details
-
getCtagsLang
Description copied from class:AbstractAnalyzer
Subclasses should override to return the case-insensitive name aligning with either a built-in Universal Ctags language name or an OpenGrok custom language name.- Overrides:
getCtagsLang
in classPlainAnalyzer
- Returns:
"Eiffel"
-
getSpecializedVersionNo
protected int getSpecializedVersionNo()Gets a version number to be used to tag processed documents so that re-analysis can be re-done later if a stored version number is different from the current implementation.- Overrides:
getSpecializedVersionNo
in classPlainAnalyzer
- Returns:
- 20190118_00
-
newXref
Creates a wrappedEiffelXref
instance.- Specified by:
newXref
in classAbstractSourceCodeAnalyzer
- Parameters:
reader
- the data to produce xref for- Returns:
- a defined instance
-