public abstract class EntryPointsManagerBase extends EntryPointsManager implements PersistentStateComponent<Element>
| Modifier and Type | Class and Description |
|---|---|
class |
EntryPointsManagerBase.AddImplicitlyWriteAnnotation |
static class |
EntryPointsManagerBase.ClassPattern |
Disposable.Parent| Modifier and Type | Field and Description |
|---|---|
JDOMExternalizableStringList |
ADDITIONAL_ANNOTATIONS |
static ExtensionPointName<EntryPoint> |
DEAD_CODE_EP_NAME |
protected Project |
myProject |
protected java.util.List<java.lang.String> |
myWriteAnnotations |
| Constructor and Description |
|---|
EntryPointsManagerBase(Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllPersistentEntries(EntryPointsManagerBase manager) |
void |
addEntryPoint(RefElement newEntryPoint,
boolean isPersistent) |
void |
cleanup() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.util.Collection<java.lang.String> |
getAdditionalAnnotations() |
RefElement [] |
getEntryPoints(RefManager refManager) |
static EntryPointsManagerBase |
getInstance(Project project) |
java.util.LinkedHashSet<EntryPointsManagerBase.ClassPattern> |
getPatterns() |
Element |
getState() |
boolean |
isAddNonJavaEntries() |
boolean |
isEntryPoint(PsiElement element) |
boolean |
isImplicitWrite(PsiElement element)
Returns
true for fields, annotated with "write" annotations |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
removeEntryPoint(RefElement anEntryPoint) |
void |
resolveEntryPoints(RefManager manager) |
void |
setAddNonJavaEntries(boolean addNonJavaEntries) |
static void |
writeExternal(Element element,
java.util.Map<java.lang.String,SmartRefElementPointer> persistentEntryPoints,
JDOMExternalizableStringList additional_annotations) |
configureAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static final ExtensionPointName<EntryPoint> DEAD_CODE_EP_NAME
public JDOMExternalizableStringList ADDITIONAL_ANNOTATIONS
protected java.util.List<java.lang.String> myWriteAnnotations
protected final Project myProject
public EntryPointsManagerBase(Project project)
public java.util.Collection<java.lang.String> getAdditionalAnnotations()
public static EntryPointsManagerBase getInstance(Project project)
public void loadState(Element element)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<Element>element - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public Element getState()
getState in interface PersistentStateComponent<Element>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic static void writeExternal(Element element,
java.util.Map<java.lang.String,SmartRefElementPointer> persistentEntryPoints,
JDOMExternalizableStringList additional_annotations)
public void resolveEntryPoints(RefManager manager)
resolveEntryPoints in class EntryPointsManagerpublic void addEntryPoint(RefElement newEntryPoint, boolean isPersistent)
addEntryPoint in class EntryPointsManagerpublic void removeEntryPoint(RefElement anEntryPoint)
removeEntryPoint in class EntryPointsManagerpublic RefElement [] getEntryPoints(RefManager refManager)
getEntryPoints in class EntryPointsManagerpublic void dispose()
Disposabledispose in interface Disposablepublic void cleanup()
cleanup in class EntryPointsManagerpublic boolean isAddNonJavaEntries()
isAddNonJavaEntries in class EntryPointsManagerpublic void addAllPersistentEntries(EntryPointsManagerBase manager)
public void setAddNonJavaEntries(boolean addNonJavaEntries)
public boolean isImplicitWrite(PsiElement element)
EntryPointsManagertrue for fields, annotated with "write" annotationsisImplicitWrite in class EntryPointsManagerpublic boolean isEntryPoint(PsiElement element)
isEntryPoint in class EntryPointsManagerpublic java.util.LinkedHashSet<EntryPointsManagerBase.ClassPattern> getPatterns()