Package com.orange.wink.model

Examples of com.orange.wink.model.GlobalObject


    }
    fileNames.add(f);
    wp.parse(fileNames);
    // wp.print();

    final GlobalObject scope = wp.getGlobalScope();
    if (scope != null) {
      getFunctions(fns, scope);
      getLiterals(lits, scope);
    }
View Full Code Here


      ast = astBuilder.build(tree);
      // System.out.println(ast);
    } catch (final IOException e) {
      throw new WinkParseException(e);
    }
    addJsFile(fileName, new GlobalObject(ast));
  }
View Full Code Here

  /**
   * @throws WinkParseException
   */
  public void print() throws WinkParseException {
    final GlobalObject scope = getGlobalScope();
    if (scope == null) {
      return;
    }

    System.out.println(scope.getAst().toStringInner());
    System.out.println(scope.getAst());

    // System.out.println("------------ FILES");
    // for (final WinkJsFile jsfile : jsFiles) {
    // System.out.println("- " + jsfile.getFilename());
    // }

    System.out.println("\n------------ MODEL");
    System.out.println(scope.toStringRecursive(null, 0));

    // System.out.println("\n------------ SOURCES");
    // printSource(scope);
  }
View Full Code Here

TOP

Related Classes of com.orange.wink.model.GlobalObject

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.