Search in sources :

Example 1 with Interceptor

use of com.intellij.struts2.dom.struts.strutspackage.Interceptor 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

Interceptor (com.intellij.struts2.dom.struts.strutspackage.Interceptor)1 InterceptorOrStackBase (com.intellij.struts2.dom.struts.strutspackage.InterceptorOrStackBase)1 InterceptorStack (com.intellij.struts2.dom.struts.strutspackage.InterceptorStack)1 StrutsPackage (com.intellij.struts2.dom.struts.strutspackage.StrutsPackage)1 HashSet (java.util.HashSet)1 NotNull (org.jetbrains.annotations.NotNull)1