Package com.google.gxp.compiler

Examples of com.google.gxp.compiler.CompilationUnit


   */
  private Root getRoot(TemplateName templateName) {
    if (templateName.getPackageName() == null) {
      throw new IllegalArgumentException("templateName must be fully qualified");
    }
    CompilationUnit compilationUnit = compilationSet.getCompilationUnit(
        (TemplateName.FullyQualified) templateName);
    return (compilationUnit == null) ? null : compilationUnit.getReparentedTree().getRoot();
  }
View Full Code Here


    return unit.getSourceFileRef().getLastModified();
  }

  // implements CompilationManager
  public boolean sourceChanged(CompilationTask task) {
    CompilationUnit unit = task.getCompilationUnit();
    DependencyNode node = nodes.get(unit.getTemplateName());
    if (node != null) {
      long oldTimestamp = node.getLastModified();
      if (oldTimestamp > 0L) {
        return oldTimestamp != getLastModified(unit);
      }
View Full Code Here

    return true;
  }

  // implements CompilationManager
  public boolean usedInterfacesChanged(CompilationTask task) {
    CompilationUnit unit = task.getCompilationUnit();
    DependencyNode node = nodes.get(unit.getTemplateName());
    if (node != null) {
      Set<Callable> oldRequirements = node.getRequirements();
      return !oldRequirements.equals(getRequirements(unit));
    }
    // We never saw the file before so play it safe.
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.CompilationUnit

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.