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) |
configureAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public 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)
PersistentStateComponent
State 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.XmlSerializer
public static void writeExternal(Element element, java.util.Map<java.lang.String,SmartRefElementPointer> persistentEntryPoints, JDOMExternalizableStringList additional_annotations)
public void resolveEntryPoints(RefManager manager)
resolveEntryPoints
in class EntryPointsManager
public void addEntryPoint(RefElement newEntryPoint, boolean isPersistent)
addEntryPoint
in class EntryPointsManager
public void removeEntryPoint(RefElement anEntryPoint)
removeEntryPoint
in class EntryPointsManager
public RefElement [] getEntryPoints(RefManager refManager)
getEntryPoints
in class EntryPointsManager
public void dispose()
Disposable
dispose
in interface Disposable
public void cleanup()
cleanup
in class EntryPointsManager
public boolean isAddNonJavaEntries()
isAddNonJavaEntries
in class EntryPointsManager
public void addAllPersistentEntries(EntryPointsManagerBase manager)
public void setAddNonJavaEntries(boolean addNonJavaEntries)
public boolean isImplicitWrite(PsiElement element)
EntryPointsManager
true
for fields, annotated with "write" annotationsisImplicitWrite
in class EntryPointsManager
public boolean isEntryPoint(PsiElement element)
isEntryPoint
in class EntryPointsManager
public java.util.LinkedHashSet<EntryPointsManagerBase.ClassPattern> getPatterns()