public class NullableNotNullManagerImpl extends NullableNotNullManager implements PersistentStateComponent<Element>, ModificationTracker
Modifier and Type | Field and Description |
---|---|
java.lang.String |
myDefaultNotNull |
java.lang.String |
myDefaultNullable |
JDOMExternalizableStringList |
myNotNulls |
JDOMExternalizableStringList |
myNullables |
LOG, myProject
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
NullableNotNullManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<java.lang.String> |
getAllNullabilityAnnotationsWithNickNames() |
java.lang.String |
getDefaultNotNull() |
java.lang.String |
getDefaultNullable() |
java.util.List<java.lang.String> |
getInstrumentedNotNulls() |
long |
getModificationCount() |
java.util.List<java.lang.String> |
getNotNulls() |
protected java.util.List<java.lang.String> |
getNotNullsWithNickNames() |
java.util.List<java.lang.String> |
getNullables() |
protected java.util.List<java.lang.String> |
getNullablesWithNickNames() |
Element |
getState() |
protected boolean |
hasHardcodedContracts(PsiElement element) |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
setDefaultNotNull(java.lang.String defaultNotNull) |
void |
setDefaultNullable(java.lang.String defaultNullable) |
void |
setInstrumentedNotNulls(java.util.List<java.lang.String> names) |
void |
setNotNulls(java.lang.String... annotations) |
void |
setNullables(java.lang.String... annotations) |
copyNotNullAnnotation, copyNotNullAnnotation, copyNullableAnnotation, copyNullableOrNotNullAnnotation, findEffectiveNullabilityInfo, findExplicitNullability, findExplicitNullabilityAnnotation, findOwnNullabilityInfo, getInstance, getNotNullAnnotation, getNullability, getNullableAnnotation, hasNullability, isNotNull, isNotNull, isNullabilityAnnotation, isNullable, isNullable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public java.lang.String myDefaultNullable
public java.lang.String myDefaultNotNull
public final JDOMExternalizableStringList myNullables
public final JDOMExternalizableStringList myNotNulls
public NullableNotNullManagerImpl(Project project)
public void setNotNulls(java.lang.String... annotations)
setNotNulls
in class NullableNotNullManager
public void setNullables(java.lang.String... annotations)
setNullables
in class NullableNotNullManager
public java.lang.String getDefaultNullable()
getDefaultNullable
in class NullableNotNullManager
public void setDefaultNullable(java.lang.String defaultNullable)
setDefaultNullable
in class NullableNotNullManager
public java.lang.String getDefaultNotNull()
getDefaultNotNull
in class NullableNotNullManager
public void setDefaultNotNull(java.lang.String defaultNotNull)
setDefaultNotNull
in class NullableNotNullManager
public java.util.List<java.lang.String> getNullables()
getNullables
in class NullableNotNullManager
public java.util.List<java.lang.String> getNotNulls()
getNotNulls
in class NullableNotNullManager
public java.util.List<java.lang.String> getInstrumentedNotNulls()
getInstrumentedNotNulls
in class NullableNotNullManager
public void setInstrumentedNotNulls(java.util.List<java.lang.String> names)
setInstrumentedNotNulls
in class NullableNotNullManager
protected boolean hasHardcodedContracts(PsiElement element)
hasHardcodedContracts
in class NullableNotNullManager
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 void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
protected java.util.List<java.lang.String> getNullablesWithNickNames()
getNullablesWithNickNames
in class NullableNotNullManager
protected java.util.List<java.lang.String> getNotNullsWithNickNames()
getNotNullsWithNickNames
in class NullableNotNullManager
protected java.util.Set<java.lang.String> getAllNullabilityAnnotationsWithNickNames()
getAllNullabilityAnnotationsWithNickNames
in class NullableNotNullManager
public long getModificationCount()
getModificationCount
in interface ModificationTracker