|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.frag.umlplugin.psi.DependencyCollection
public class DependencyCollection
Contains several dependencies from one class to another.
Nested Class Summary | |
---|---|
static interface |
DependencyCollection.Filter
Filter for restricting dependency collection contents. |
Field Summary | |
---|---|
static DependencyCollection.Filter |
FIELD_FILTER
Filter that accepts only fields. |
Constructor Summary | |
---|---|
DependencyCollection()
|
Method Summary | |
---|---|
void |
addDependency(com.intellij.psi.PsiClass psiClass,
UsageType usageType,
int offset)
Adds a dependency. |
DependencyCollection |
filter(DependencyCollection.Filter filter)
Filter contents of this dependency collection and return new restricted collection. |
java.util.List<DependencyReason> |
getDependencyReasons(com.intellij.psi.PsiClass psiClass)
Gets a list of dependency reasons for given PSI class. |
java.util.Iterator<com.intellij.psi.PsiClass> |
iterator()
Gets an iterator that iterates over all dependencies. |
java.lang.String |
toString()
Creates a string representation of this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DependencyCollection.Filter FIELD_FILTER
Constructor Detail |
---|
public DependencyCollection()
Method Detail |
---|
public void addDependency(@NotNull com.intellij.psi.PsiClass psiClass, @NotNull UsageType usageType, int offset)
psiClass
- PSI classusageType
- type of usage for given PSI classoffset
- source offset@NotNull public java.util.Iterator<com.intellij.psi.PsiClass> iterator()
iterator
in interface java.lang.Iterable<com.intellij.psi.PsiClass>
@NotNull public java.util.List<DependencyReason> getDependencyReasons(@NotNull com.intellij.psi.PsiClass psiClass)
psiClass
- PSI class to get dependency reasons for
@NotNull public DependencyCollection filter(@NotNull DependencyCollection.Filter filter)
filter
- filter to use for filtering this collection.
@NotNull public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |