Package com.google.dart.engine.element.angular

Examples of com.google.dart.engine.element.angular.AngularComponentElement


          return selector;
        }
      }
      // try properties of AngularComponentElement
      if (toolkitObject instanceof AngularComponentElement) {
        AngularComponentElement component = (AngularComponentElement) toolkitObject;
        properties = component.getProperties();
      }
      // try properties of AngularDirectiveElement
      if (toolkitObject instanceof AngularDecoratorElement) {
        AngularDecoratorElement directive = (AngularDecoratorElement) toolkitObject;
        properties = directive.getProperties();
View Full Code Here


   * Creates new {@link NgProcessor} for the given {@link AngularElement}, maybe {@code null} if not
   * supported.
   */
  private NgProcessor createProcessor(AngularElement element) {
    if (element instanceof AngularComponentElement) {
      AngularComponentElement component = (AngularComponentElement) element;
      return new NgComponentElementProcessor(component);
    }
    if (element instanceof AngularControllerElement) {
      AngularControllerElement controller = (AngularControllerElement) element;
      return new NgControllerElementProcessor(controller);
View Full Code Here

  private TaskData createResolveAngularComponentTemplateTask(Source source, HtmlEntry htmlEntry) {
    if (htmlEntry.getState(HtmlEntry.RESOLVED_UNIT) != CacheState.VALID) {
      return createResolveHtmlTask(source, htmlEntry);
    }
    AngularApplication application = htmlEntry.getValue(HtmlEntry.ANGULAR_APPLICATION);
    AngularComponentElement component = htmlEntry.getValue(HtmlEntry.ANGULAR_COMPONENT);
    HtmlEntryImpl htmlCopy = htmlEntry.getWritableCopy();
    htmlCopy.setState(HtmlEntry.ANGULAR_ERRORS, CacheState.IN_PROCESS);
    cache.put(source, htmlCopy);
    return new TaskData(new ResolveAngularComponentTemplateTask(
        this,
View Full Code Here

            sources.add(source);
            return;
          }
          AngularApplication applicationInfo = htmlEntry.getValue(HtmlEntry.ANGULAR_APPLICATION);
          if (applicationInfo != null) {
            AngularComponentElement component = htmlEntry.getValue(HtmlEntry.ANGULAR_COMPONENT);
            if (component != null) {
              sources.add(source);
              return;
            }
          }
View Full Code Here

          if (templateSource != null) {
            HtmlEntry htmlEntry = getReadableHtmlEntry(templateSource);
            HtmlEntryImpl htmlCopy = htmlEntry.getWritableCopy();
            htmlCopy.setValue(HtmlEntry.ANGULAR_APPLICATION, application);
            if (hasTemplate instanceof AngularComponentElement) {
              AngularComponentElement component = (AngularComponentElement) hasTemplate;
              htmlCopy.setValue(HtmlEntry.ANGULAR_COMPONENT, component);
            }
            htmlCopy.setState(HtmlEntry.ANGULAR_ERRORS, CacheState.INVALID);
            cache.put(templateSource, htmlCopy);
            workManager.add(templateSource, SourcePriority.HTML);
View Full Code Here

TOP

Related Classes of com.google.dart.engine.element.angular.AngularComponentElement

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.