当前位置: 首页>>代码示例>>Java>>正文


Java XsltIncludeIndex类代码示例

本文整理汇总了Java中org.intellij.lang.xpath.xslt.impl.XsltIncludeIndex的典型用法代码示例。如果您正苦于以下问题:Java XsltIncludeIndex类的具体用法?Java XsltIncludeIndex怎么用?Java XsltIncludeIndex使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


XsltIncludeIndex类属于org.intellij.lang.xpath.xslt.impl包,在下文中一共展示了XsltIncludeIndex类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: resolveInner

import org.intellij.lang.xpath.xslt.impl.XsltIncludeIndex; //导入依赖的package包/类
@Nullable
private XPathVariable resolveInner(XPathVariableReference reference) {
    final XmlTag context = getContextTagImpl(reference);
    final VariableResolveProcessor processor = new VariableResolveProcessor(reference.getReferencedName(), context);

    final XPathVariable variable = (XPathVariable)ResolveUtil.treeWalkUp(processor, context);
    if (variable != null) {
      return variable;
    }
    if (!processForwardGlobals(context, processor)) {
      final XmlFile file = PsiTreeUtil.getParentOfType(context, XmlFile.class, true);
      if (file != null) {
        XsltIncludeIndex.processBackwardDependencies(file, new Processor<XmlFile>() {
          public boolean process(XmlFile xmlFile) {
            processor.processExternalFile(xmlFile, context);
            return processor.shouldContinue();
          }
        });
      }
    }
    return (XPathVariable)processor.getResult();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:XsltVariableContext.java

示例2: getLocalUseScope

import org.intellij.lang.xpath.xslt.impl.XsltIncludeIndex; //导入依赖的package包/类
@NotNull
@Override
public SearchScope getLocalUseScope() {
    final XmlTag tag = getTag();
    if (!tag.isValid()) {
        return getDefaultUseScope();
    }
    final XsltTemplate template = getTemplate();
    if (template == null) {
        return getDefaultUseScope();
    }
    if (template.getName() == null) {
        return getDefaultUseScope();
    }
    final XmlFile file = (XmlFile)tag.getContainingFile();
    if (!XsltIncludeIndex.processBackwardDependencies(file, new CommonProcessors.FindFirstProcessor<XmlFile>())) {
        // processor found something
        return getDefaultUseScope();
    }
    return new LocalSearchScope(file);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:XsltParameterImpl.java

示例3: getDependencies

import org.intellij.lang.xpath.xslt.impl.XsltIncludeIndex; //导入依赖的package包/类
@Nullable
public static Collection<XmlFile> getDependencies(XmlFile element) {
  final CommonProcessors.CollectUniquesProcessor<XmlFile> processor = new CommonProcessors.CollectUniquesProcessor<XmlFile>() {
    @Override
    public boolean process(XmlFile file) {
      if (!getResults().contains(file)) {
        XsltIncludeIndex.processForwardDependencies(file, this);
      }
      return super.process(file);
    }
  };
  XsltIncludeIndex.processForwardDependencies(element, processor);
  return processor.getResults();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ResolveUtil.java

示例4: getDependencies

import org.intellij.lang.xpath.xslt.impl.XsltIncludeIndex; //导入依赖的package包/类
@Nullable
public static Collection<XmlFile> getDependencies(XmlFile element) {
	final CommonProcessors.CollectUniquesProcessor<XmlFile> processor = new CommonProcessors.CollectUniquesProcessor<XmlFile>() {
		@Override
		public boolean process(XmlFile file) {
			if (!getResults().contains(file)) {
				XsltIncludeIndex.processForwardDependencies(file, this);
			}
			return super.process(file);
		}
	};
	XsltIncludeIndex.processForwardDependencies(element, processor);
	return processor.getResults();
}
 
开发者ID:consulo,项目名称:consulo-xslt,代码行数:15,代码来源:ResolveUtil.java


注:本文中的org.intellij.lang.xpath.xslt.impl.XsltIncludeIndex类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。