Package gov.nasa.jpf.autodoc.types.parser

Examples of gov.nasa.jpf.autodoc.types.parser.TargetParser


    list.add("build/main/gov/nasa/jpf/autodoc/types/AutoDocTool.class");
    list.add("build/main/gov/nasa/jpf/autodoc/types/parser/Parser.class");
    list.add("build/main/gov/nasa/jpf/autodoc/types/parser/TargetParser.class");
    list.add("build/main/gov/nasa/jpf/autodoc/types/parser/ClassFileParser.class");

    Parser parser = new TargetParser();
    List<ClassInfo> classes = parser.parse(list);
    assertFalse(classes.isEmpty());

    int i = 0;
    for (ClassInfo info : classes) {
      System.out.println("  [" + i + "] " + info.getName());
View Full Code Here


  public void testParse_String() throws Exception {
    System.out.println("method> parse(String)");
   
    String clazz = "build/main/gov/nasa/jpf/autodoc/types/AutoDocTool.class";

    TargetParser parser = new TargetParser();
    ClassInfo info = parser.parse(clazz);
    assertEquals("gov/nasa/jpf/autodoc/types/AutoDocTool", info.getName());
    System.out.println("  [" + 0 + "] class: " + info.getName()
                       + " | flags: " + info.getFlags());
  }
View Full Code Here

    System.out.println("method> parse(String, String[])");
   
    String clazz = "gov.nasa.jpf.autodoc.types.AutoDocTool";
    String[] pathnames = new String[]{"build/jpf-autodoc-types.jar"};

    TargetParser parser = new TargetParser();
    ClassInfo info = parser.parse(clazz, pathnames);
    assertEquals("gov/nasa/jpf/autodoc/types/AutoDocTool", info.getName());
    System.out.println("  [" + 0 + "] class: " + info.getName()
                       + " | flags: " + info.getFlags());
  }
View Full Code Here

    data.add(cp.getClassData("gov.nasa.jpf.autodoc.types.AutoDocTool"));
    data.add(cp.getClassData("gov.nasa.jpf.autodoc.types.parser.TargetParser"));
    data.add(cp.getClassData("gov.nasa.jpf.autodoc.types.parser.ClassFileParser"));
    data.add(cp.getClassData("gov.nasa.jpf.autodoc.types.parser.Parser"));

    TargetParser parser = new TargetParser();
    List<ClassInfo> classes = parser.parseBytes(data);
    assertFalse(classes.isEmpty());

    int i = 0;
    for (ClassInfo info : classes) {
      System.out.println("  [" + i + "] " + info.getName());
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.autodoc.types.parser.TargetParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.