Search in sources :

Example 6 with InterceptorOrStackBase

use of com.intellij.struts2.dom.struts.strutspackage.InterceptorOrStackBase in project intellij-plugins by JetBrains.

the class StrutsModelImpl method getAllInterceptorsAndStacks.

@NotNull
public Set<InterceptorOrStackBase> getAllInterceptorsAndStacks() {
    final Set<InterceptorOrStackBase> interceptorOrStackBases = new HashSet<>();
    for (final StrutsPackage strutsPackage : getStrutsPackages()) {
        final List<InterceptorStack> interceptorList = strutsPackage.getInterceptorStacks();
        interceptorOrStackBases.addAll(interceptorList);
        final List<Interceptor> interceptors = strutsPackage.getInterceptors();
        interceptorOrStackBases.addAll(interceptors);
    }
    return interceptorOrStackBases;
}
Also used : InterceptorOrStackBase(com.intellij.struts2.dom.struts.strutspackage.InterceptorOrStackBase) InterceptorStack(com.intellij.struts2.dom.struts.strutspackage.InterceptorStack) StrutsPackage(com.intellij.struts2.dom.struts.strutspackage.StrutsPackage) Interceptor(com.intellij.struts2.dom.struts.strutspackage.Interceptor) HashSet(java.util.HashSet) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

InterceptorOrStackBase (com.intellij.struts2.dom.struts.strutspackage.InterceptorOrStackBase)6 NotNull (org.jetbrains.annotations.NotNull)4 StrutsPackage (com.intellij.struts2.dom.struts.strutspackage.StrutsPackage)3 Condition (com.intellij.openapi.util.Condition)2 Ref (com.intellij.openapi.util.Ref)2 ConverterUtil (com.intellij.struts2.dom.ConverterUtil)2 InterceptorRefResolveConverter (com.intellij.struts2.dom.struts.strutspackage.InterceptorRefResolveConverter)2 InterceptorStack (com.intellij.struts2.dom.struts.strutspackage.InterceptorStack)2 StrutsPackageHierarchyWalker (com.intellij.struts2.dom.struts.strutspackage.StrutsPackageHierarchyWalker)2 Processor (com.intellij.util.Processor)2 SmartList (com.intellij.util.SmartList)2 ContainerUtil (com.intellij.util.containers.ContainerUtil)2 ConvertContext (com.intellij.util.xml.ConvertContext)2 Collection (java.util.Collection)2 List (java.util.List)2 NonNls (org.jetbrains.annotations.NonNls)2 Nullable (org.jetbrains.annotations.Nullable)2 PsiClass (com.intellij.psi.PsiClass)1 PsiReference (com.intellij.psi.PsiReference)1 Interceptor (com.intellij.struts2.dom.struts.strutspackage.Interceptor)1