@Nullable private JspDirectiveKind kind(XmlTag tag) { if(!(tag instanceof JspDirective)) { return null; } String localName = tag.getLocalName(); switch(localName) { case "page": return JspDirectiveKind.PAGE; case "include": return JspDirectiveKind.INCLUDE; default: return null; } }
@Override protected boolean isOutOfCodeBlock(@NotNull PsiElement element) { if(PsiTreeUtil.getParentOfType(element, JspDirective.class) != null) { return true; } return false; }
private static boolean isClassOwner(final PsiElement element) { return element instanceof PsiClassOwner || element instanceof JspDirective; }
private static boolean isClassOwner(final PsiElement element) { return element instanceof PsiClassOwner && !(element instanceof XmlFile) || element instanceof JspDirective; }
public void visitDirective(JspDirective directive) { visitElement(directive); }