當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。