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

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


   */
  @Test
  public void testList() {
    System.out.println("method> list");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    PrintWriter pw = new PrintWriter(System.out, true);
    scanner.list(pw);
  }
View Full Code Here


   */
  @Test
  public void testScan_String_TargetScannerScanType() throws Exception {
    System.out.println("method> scan(String, ScanType)");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    String target = ".";
    ScanData scanData = scanner.scan(target, ScanType.JARS);
   
View Full Code Here

   */
  @Test
  public void testResolve() throws Exception {
    System.out.println("method> resolve");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    Set<String> jars = new TreeSet<String>();
    jars.add("build/jpf-autodoc-types.jar");
   
View Full Code Here

   */
  @Test
  public void testFetchClassFiles() {
    System.out.println("method> fetchClassFiles");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    int filecount = 12;
    Set<String> set = scanner.fetchClassFiles("test");
    System.out.println(set);
View Full Code Here

   */
  @Test
  public void testFetchZipFiles() {
    System.out.println("method> fetchZipFiles");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    int filecount = 0;
    Set<String> set = scanner.fetchZipFiles(".");
    System.out.println(set);
View Full Code Here

   */
  @Test
  public void testFetchJarFiles() {
    System.out.println("method> fetchJarFiles");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    int filecount = 1;
    Set<String> set = scanner.fetchJarFiles(".");
    System.out.println(set);
View Full Code Here

   */
  @Test
  public void testFetch() {
    System.out.println("method> fetch");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    FilenameFilter filter = new FilenameFilter() {

      @Override
View Full Code Here

   */
  @Test
  public void testSeek() {
    System.out.println("method> seek");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    File file = new File("test");
    FilenameFilter filter = new FilenameFilter() {

View Full Code Here

   */
  @Test
  public void testGetScanType() {
    System.out.println("method> getScanType");
   
    Parser parser = new TargetParser();
    TargetScanner scanner = new TargetScanner(parser);
   
    ScanType type1 = scanner.getScanType(0x1);
    ScanType type2 = scanner.getScanType(0x2);
    ScanType type3 = scanner.getScanType(0x3);
View Full Code Here

    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

TOP

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

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.