public class PsiModificationTrackerImpl extends java.lang.Object implements PsiModificationTracker, PsiTreeChangePreprocessor
PsiModificationTracker.Listener, PsiModificationTracker.SERVICE
JAVA_STRUCTURE_MODIFICATION_COUNT, MODIFICATION_COUNT, OUT_OF_CODE_BLOCK_MODIFICATION_COUNT, TOPIC
EVER_CHANGED, NEVER_CHANGED
EP, EP_NAME
Constructor and Description |
---|
PsiModificationTrackerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canAffectPsi(PsiTreeChangeEventImpl event) |
ModificationTracker |
forLanguage(Language language) |
ModificationTracker |
forLanguages(Condition<? super Language> condition) |
long |
getJavaStructureModificationCount()
Tracks structural Java modifications, i.e.
|
ModificationTracker |
getJavaStructureModificationTracker() |
long |
getModificationCount()
Tracks any PSI modification.
|
long |
getOutOfCodeBlockModificationCount() |
ModificationTracker |
getOutOfCodeBlockModificationTracker() |
void |
incCounter() |
void |
incLanguageModificationCount(Language language) |
void |
incOutOfCodeBlockModificationCounter() |
void |
treeChanged(PsiTreeChangeEventImpl event) |
public PsiModificationTrackerImpl(Project project)
public void incCounter()
public void incOutOfCodeBlockModificationCounter()
public void treeChanged(PsiTreeChangeEventImpl event)
treeChanged
in interface PsiTreeChangePreprocessor
public static boolean canAffectPsi(PsiTreeChangeEventImpl event)
public long getModificationCount()
PsiModificationTracker
getModificationCount
in interface ModificationTracker
getModificationCount
in interface PsiModificationTracker
public long getOutOfCodeBlockModificationCount()
getOutOfCodeBlockModificationCount
in interface PsiModificationTracker
PsiModificationTracker.getJavaStructureModificationCount()
, but also includes changes in non-Java files, e.g. XML. Rarely needed.public long getJavaStructureModificationCount()
PsiModificationTracker
getJavaStructureModificationCount
in interface PsiModificationTracker
public ModificationTracker getOutOfCodeBlockModificationTracker()
getOutOfCodeBlockModificationTracker
in interface PsiModificationTracker
PsiModificationTracker.getOutOfCodeBlockModificationCount()
public ModificationTracker getJavaStructureModificationTracker()
getJavaStructureModificationTracker
in interface PsiModificationTracker
PsiModificationTracker.getJavaStructureModificationCount()
public void incLanguageModificationCount(Language language)
public ModificationTracker forLanguage(Language language)
public ModificationTracker forLanguages(Condition<? super Language> condition)