Java 类com.intellij.psi.impl.source.jsp.jspXml.JspDirective 实例源码

项目:consulo-javaee    文件:JspFileImpl.java   
@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;
    }
}
项目:consulo-javaee    文件:JspPsiTreeChangePreprocessor.java   
@Override
protected boolean isOutOfCodeBlock(@NotNull PsiElement element)
{
    if(PsiTreeUtil.getParentOfType(element, JspDirective.class) != null)
    {
        return true;
    }
    return false;
}
项目:intellij-ce-playground    文件:JavaCodeBlockModificationListener.java   
private static boolean isClassOwner(final PsiElement element) {
  return element instanceof PsiClassOwner || element instanceof JspDirective;
}
项目:tools-idea    文件:JavaCodeBlockModificationListener.java   
private static boolean isClassOwner(final PsiElement element) {
  return element instanceof PsiClassOwner && !(element instanceof XmlFile) || element instanceof JspDirective;
}
项目:consulo-javaee    文件:JspElementVisitor.java   
public void visitDirective(JspDirective directive)
{
    visitElement(directive);
}