public final class LanguageSubstitutors extends LanguageExtension<LanguageSubstitutor>
LanguageSubstitutor
extensions.Modifier and Type | Field and Description |
---|---|
static LanguageSubstitutors |
INSTANCE
Deprecated.
Use
getInstance() |
myEpListenerAdded, myLock
EVER_CHANGED, NEVER_CHANGED
Modifier and Type | Method and Description |
---|---|
static void |
cancelReparsing(VirtualFile file) |
static LanguageSubstitutors |
getInstance() |
Language |
substituteLanguage(Language originalLang,
VirtualFile file,
Project project)
Queries all applicable language substitutors and returns the substituted language, or
lang argument if
no substitutor has returned anything. |
addExplicitExtension, allForLanguage, allForLanguageOrAny, buildExtensions, clearCache, ensureValuesLoaded, findForLanguage, forLanguage, getDefaultImplementation, invalidateCacheForExtension, keyToString, removeExplicitExtension
addExplicitExtension, buildExtensions, buildExtensionsFromExplicitRegistration, clearCache, findSingle, forKey, getExtensions, getModificationCount, getName, getPoint, hasAnyExtensions
@Deprecated public static final LanguageSubstitutors INSTANCE
getInstance()
public static LanguageSubstitutors getInstance()
public Language substituteLanguage(Language originalLang, VirtualFile file, Project project)
lang
argument if
no substitutor has returned anything.public static void cancelReparsing(VirtualFile file)