本文整理汇总了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();
}
示例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);
}
示例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();
}
示例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();
}