public abstract class PsiAugmentProvider
extends java.lang.Object
PsiAugmentProviderTest
.
N.B. during indexing, only DumbAware
providers are run.
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<PsiAugmentProvider> |
EP_NAME |
Constructor and Description |
---|
PsiAugmentProvider() |
Modifier and Type | Method and Description |
---|---|
static <Psi extends PsiElement> |
collectAugments(PsiElement element,
java.lang.Class<? extends Psi> type) |
protected <Psi extends PsiElement> |
getAugments(PsiElement element,
java.lang.Class<Psi> type)
An extension that enables one to add children to some PSI elements, e.g.
|
static PsiType |
getInferredType(PsiTypeElement typeElement) |
protected PsiType |
inferType(PsiTypeElement typeElement)
Extends
PsiTypeElement.getType() so that a type could be retrieved from external place
(e.g. |
static java.util.Set<java.lang.String> |
transformModifierProperties(PsiModifierList modifierList,
Project project,
java.util.Set<java.lang.String> modifiers) |
protected java.util.Set<java.lang.String> |
transformModifiers(PsiModifierList modifierList,
java.util.Set<java.lang.String> modifiers)
Intercepts
PsiModifierList.hasModifierProperty(String) , so that plugins can add imaginary modifiers or hide existing ones. |
public static final ExtensionPointName<PsiAugmentProvider> EP_NAME
protected <Psi extends PsiElement> java.util.List<Psi> getAugments(PsiElement element, java.lang.Class<Psi> type)
PsiAugmentProvider
s.protected PsiType inferType(PsiTypeElement typeElement)
PsiTypeElement.getType()
so that a type could be retrieved from external place
(e.g. inferred from a variable initializer).protected java.util.Set<java.lang.String> transformModifiers(PsiModifierList modifierList, java.util.Set<java.lang.String> modifiers)
PsiModifierList.hasModifierProperty(String)
, so that plugins can add imaginary modifiers or hide existing ones.public static <Psi extends PsiElement> java.util.List<Psi> collectAugments(PsiElement element, java.lang.Class<? extends Psi> type)
public static PsiType getInferredType(PsiTypeElement typeElement)
public static java.util.Set<java.lang.String> transformModifierProperties(PsiModifierList modifierList, Project project, java.util.Set<java.lang.String> modifiers)