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


Java IXMLBuilder类代码示例

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


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

示例1: getIds

import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
@Nullable
protected Map<String, Set<String>> getIds(String content, final VirtualFile file, Project project) {
  if (!content.contains(JavaFXNamespaceProvider.JAVAFX_NAMESPACE)) {
    return null;
  }

  final Map<String, Set<String>> map = new HashMap<String, Set<String>>();
  final String path = file.getPath();
  final IXMLBuilder handler = createParseHandler(path, map);
  try {
    NanoXmlUtil.parse(new StringReader(content), handler);
  }
  catch (StopException ignore) {}
  final VirtualFile sourceRoot = ProjectRootManager.getInstance(project).getFileIndex().getSourceRootForFile(file);
  endDocument(path, sourceRoot, map, handler);
  return map;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:FxmlDataIndexer.java

示例2: getBuildProcessApplicationClasspath

import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
public static List<String> getBuildProcessApplicationClasspath(boolean isLauncherUsed) {
  final Set<String> cp = ContainerUtil.newHashSet();

  cp.add(getResourcePath(BuildMain.class));

  cp.addAll(PathManager.getUtilClassPath()); // util
  cp.add(getResourcePath(Message.class)); // protobuf
  cp.add(getResourcePath(NetUtil.class)); // netty
  cp.add(getResourcePath(ClassWriter.class));  // asm
  cp.add(getResourcePath(ClassVisitor.class));  // asm-commons
  cp.add(getResourcePath(JpsModel.class));  // jps-model-api
  cp.add(getResourcePath(JpsModelImpl.class));  // jps-model-impl
  cp.add(getResourcePath(JpsProjectLoader.class));  // jps-model-serialization
  cp.add(getResourcePath(AlienFormFileException.class));  // forms-compiler
  cp.add(getResourcePath(GridConstraints.class));  // forms-rt
  cp.add(getResourcePath(CellConstraints.class));  // jGoodies-forms
  cp.add(getResourcePath(NotNullVerifyingInstrumenter.class));  // not-null
  cp.add(getResourcePath(IXMLBuilder.class));  // nano-xml
  cp.add(getResourcePath(SequenceLock.class));  // jsr166
  cp.add(getJpsPluginSystemClassesPath().getAbsolutePath().replace('\\', '/'));
  
  //don't forget to update layoutCommunityJps() in layouts.gant accordingly

  if (!isLauncherUsed) {
    appendJavaCompilerClasspath(cp);
  }

  try {
    final Class<?> cmdLineWrapper = Class.forName("com.intellij.rt.execution.CommandLineWrapper");
    cp.add(getResourcePath(cmdLineWrapper));  // idea_rt.jar
  }
  catch (Throwable ignored) {
  }

  return ContainerUtil.newArrayList(cp);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:ClasspathBootstrap.java

示例3: createParseHandler

import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
protected IXMLBuilder createParseHandler(final String path, final Map<String, Set<String>> map) {
  return new NanoXmlUtil.IXMLBuilderAdapter() {
    @Override
    public void addAttribute(String key, String nsPrefix, String nsURI, String value, String type) throws Exception {
      if (value != null && FxmlConstants.FX_ID.equals(nsPrefix + ":" + key)) {
        Set<String> paths = map.get(value);
        if (paths == null) {
          paths = new HashSet<String>();
          map.put(value, paths);
        }
        paths.add(path);
      }
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:FxmlDataIndexer.java

示例4: getBuildProcessApplicationClasspath

import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
public static List<String> getBuildProcessApplicationClasspath() {
  final Set<String> cp = ContainerUtil.newHashSet();

  cp.add(getResourcePath(BuildMain.class));

  cp.addAll(PathManager.getUtilClassPath()); // util
  cp.add(getResourcePath(Message.class)); // protobuf
  cp.add(getResourcePath(Version.class)); // netty
  cp.add(getResourcePath(ClassWriter.class));  // asm
  cp.add(getResourcePath(ClassVisitor.class));  // asm-commons
  cp.add(getResourcePath(JpsModel.class));  // jps-model-api
  cp.add(getResourcePath(JpsModelImpl.class));  // jps-model-impl
  cp.add(getResourcePath(JpsProjectLoader.class));  // jps-model-serialization
  cp.add(getResourcePath(AlienFormFileException.class));  // forms-compiler
  cp.add(getResourcePath(GridConstraints.class));  // forms-rt
  cp.add(getResourcePath(CellConstraints.class));  // jGoodies-forms
  cp.add(getResourcePath(NotNullVerifyingInstrumenter.class));  // not-null
  cp.add(getResourcePath(IXMLBuilder.class));  // nano-xml

  final Class<StandardJavaFileManager> optimizedFileManagerClass = getOptimizedFileManagerClass();
  if (optimizedFileManagerClass != null) {
    cp.add(getResourcePath(optimizedFileManagerClass));  // optimizedFileManager
  }

  try {
    final Class<?> cmdLineWrapper = Class.forName("com.intellij.rt.execution.CommandLineWrapper");
    cp.add(getResourcePath(cmdLineWrapper));  // idea_rt.jar
  }
  catch (Throwable ignored) {
  }

  for (JavaCompiler javaCompiler : ServiceLoader.load(JavaCompiler.class)) { // Eclipse compiler
    final String compilerResource = getResourcePath(javaCompiler.getClass());
    final String name = PathUtilRt.getFileName(compilerResource);
    if (name.startsWith("ecj-") && name.endsWith(".jar")) {
      cp.add(compilerResource);
    }
  }

  return ContainerUtil.newArrayList(cp);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:42,代码来源:ClasspathBootstrap.java

示例5: endDocument

import net.n3.nanoxml.IXMLBuilder; //导入依赖的package包/类
protected void endDocument(String math, VirtualFile sourceRoot, Map<String, Set<String>> map, IXMLBuilder handler){} 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:2,代码来源:FxmlDataIndexer.java


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