public interface IGlobalExtractionPhase<T extends IExtractedValue<D>,D extends java.io.Serializable>
Modifier and Type | Method and Description |
---|---|
T |
createValue(java.lang.String uniformPath,
java.lang.String value,
D additionalInformation)
Factory method for creating a value from the given parts.
|
java.util.List<T> |
extract(ITokenElementContext fileContext)
Extracts the values from a single file described by the context.
|
java.util.EnumSet<ELanguage> |
getLanguages()
The languages for which the phase is applicable.
|
java.util.EnumSet<ECheckParameter> |
getRequiredContextParameters()
The context parameters required by this check phase.
|
default boolean |
needsAccessUniformPathByValue()
If this returns true, an inverted index that allows access by extracted value
will be constructed as well.
|
java.util.List<T> extract(ITokenElementContext fileContext) throws CheckException
CheckException
T createValue(java.lang.String uniformPath, java.lang.String value, D additionalInformation)
default boolean needsAccessUniformPathByValue()
java.util.EnumSet<ELanguage> getLanguages()
java.util.EnumSet<ECheckParameter> getRequiredContextParameters()
ECheckParameter.ABSTRACT_SYNTAX_TREE
here and getLanguages()
returns a language for which we don't have a shallow parser (e.g.,
ELanguage.XML
), this will result in errors.