Java 类com.intellij.psi.jsp.BaseJspFile 实例源码

项目:intellij-ce-playground    文件:JspContextManager.java   
@NotNull
public
BaseJspFile getRootContextFile(@NotNull BaseJspFile file) {
  BaseJspFile rootContext = file;
  HashSet<BaseJspFile> recursionPreventer = new HashSet<BaseJspFile>();
  do {
    recursionPreventer.add(rootContext);
    BaseJspFile context = getContextFile(rootContext);
    if (context == null || recursionPreventer.contains(context)) break;
    rootContext = context;
  }
  while (true);

  return rootContext;
}
项目:tools-idea    文件:JspContextManager.java   
public @NotNull
BaseJspFile getRootContextFile(@NotNull BaseJspFile file) {
  BaseJspFile rootContext = file;
  HashSet<BaseJspFile> recursionPreventer = new HashSet<BaseJspFile>();
  do {
    recursionPreventer.add(rootContext);
    BaseJspFile context = getContextFile(rootContext);
    if (context == null || recursionPreventer.contains(context)) break;
    rootContext = context;
  }
  while (true);

  return rootContext;
}
项目:consulo-javaee    文件:WebUtil.java   
@NotNull
public static List<PathReference> getPreludes(BaseJspFile file)
{

    final List<PathReference> result = new SmartList<>();
    processMatchingJspGroups(file, group ->
    {
        for(GenericDomValue<PathReference> value : group.getIncludePreludes())
        {
            ContainerUtil.addIfNotNull(result, value.getValue());
        }
        return true;
    });
    return result;
}
项目:consulo-javaee    文件:WebUtil.java   
public static List<PathReference> getCodas(BaseJspFile file)
{

    final List<PathReference> result = new SmartList<>();
    processMatchingJspGroups(file, group ->
    {
        for(GenericDomValue<PathReference> value : group.getIncludeCodas())
        {
            ContainerUtil.addIfNotNull(result, value.getValue());
        }
        return true;
    });
    return result;
}
项目:intellij-ce-playground    文件:JspContextManager.java   
@Nullable
public abstract
BaseJspFile getContextFile(@NotNull PsiFile file);
项目:tools-idea    文件:JspContextManager.java   
public abstract @Nullable
BaseJspFile getContextFile(@NotNull PsiFile file);
项目:intellij-ce-playground    文件:JspContextManager.java   
public abstract BaseJspFile[] getSuitableContextFiles(@NotNull PsiFile file);
项目:intellij-ce-playground    文件:JspContextManager.java   
public abstract void setContextFile(@NotNull PsiFile file, @Nullable BaseJspFile contextFile);
项目:tools-idea    文件:JspContextManager.java   
public abstract BaseJspFile[] getSuitableContextFiles(@NotNull PsiFile file);
项目:tools-idea    文件:JspContextManager.java   
public abstract void setContextFile(@NotNull PsiFile file, @Nullable BaseJspFile contextFile);