Examples of Root


Examples of com.google.gxp.compiler.base.Root

                             Collections.<FormalTypeParameter>emptyList(),
                             collapse(input, null, null));
    BoundTree inTree = new BoundTree(pos(), AlertSet.EMPTY, root,
                                     Collections.<Callable>emptySet());
    SpaceCollapsedTree outTree = COLLAPSER.apply(inTree);
    Root newRoot = outTree.getRoot();
    assertTrue(newRoot + " is not a Template",
               newRoot instanceof Template);
    Template newTemplate = (Template)newRoot;
    assertEquals(expected, newTemplate.getContent());
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

*/
public class PlaceholderInserter implements Function<SpaceCollapsedTree, PlaceholderInsertedTree> {

  public PlaceholderInsertedTree apply(SpaceCollapsedTree tree) {
    AlertSetBuilder alertSetBuilder = new AlertSetBuilder(tree.getAlerts());
    Root root = tree.getRoot().acceptVisitor(new Visitor(alertSetBuilder));

    return new PlaceholderInsertedTree(tree.getSourcePosition(), alertSetBuilder.buildAndClear(),
                                       root);
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

    Parts parts = groupParts(alertSetBuilder, parseTree, noAttrs, children);

    // Throw out all but the first Root. The parse phase should have
    // already complained about there being too many roots.
    List<Root> roots = parts.getRoots();
    Root root = roots.isEmpty()
        ? new NullRoot(parseTree, TemplateName.parseFullyQualifiedDottedName(className))
        : roots.get(0);
    return new ReparentedTree(parseTree.getSourcePosition(),
                              alertSetBuilder.buildAndClear(),
                              root);
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

public class MessageExtractor implements Function<I18nCheckedTree, MessageExtractedTree> {

  public MessageExtractedTree apply(I18nCheckedTree tree) {
    List<ExtractedMessage> messages = Lists.newArrayList();
    AlertSetBuilder alertSetBuilder = new AlertSetBuilder(tree.getAlerts());
    Root root = tree.getRoot().acceptVisitor(new OutsideMessageVisitor(alertSetBuilder, messages));

    return new MessageExtractedTree(tree.getSourcePosition(), alertSetBuilder.buildAndClear(),
                                    root, messages);
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

   * an EscapedTree.
   */
  public EscapedTree apply(PlaceholderInsertedTree tree) {
    AlertSetBuilder alertSetBuilder = new AlertSetBuilder(tree.getAlerts());
    Worker worker = new Worker(alertSetBuilder);
    Root root = worker.apply(tree.getRoot());

    return new EscapedTree(tree.getSourcePosition(), alertSetBuilder.buildAndClear(), root);
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

* href="https://www.corp.google.com/eng/designdocs/gxp/java-rewrite/#new-style-space-collapsing">new-style
* space collapsing</a>.
*/
public class SpaceCollapser implements Function<BoundTree,SpaceCollapsedTree> {
  public SpaceCollapsedTree apply(BoundTree tree) {
    Root root = tree.getRoot().acceptVisitor(new SearchingVisitor());
    return new SpaceCollapsedTree(tree.getSourcePosition(), tree.getAlerts(), root);
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

public class PlaceholderPivoter implements Function<ContentFlattenedTree, PlaceholderPivotedTree> {

  public PlaceholderPivotedTree apply(ContentFlattenedTree tree) {
    AlertSetBuilder alertSetBuilder = new AlertSetBuilder(tree.getAlerts());
    Worker worker = new Worker(alertSetBuilder);
    Root root = tree.getRoot().acceptVisitor(worker.defaultVisitor);

    return new PlaceholderPivotedTree(tree.getSourcePosition(), alertSetBuilder.buildAndClear(),
                                      root);
  }
View Full Code Here

Examples of com.google.gxp.compiler.base.Root

    Parts parts = groupParts(alertSetBuilder, parseTree, noAttrs, children);

    // Throw out all but the first Root. The parse phase should have
    // already complained about there being too many roots.
    List<Root> roots = parts.getRoots();
    Root root = roots.isEmpty()
        ? new NullRoot(parseTree, TemplateName.parseFullyQualifiedDottedName(className))
        : roots.get(0);
    return new ReparentedTree(parseTree.getSourcePosition(),
                              alertSetBuilder.buildAndClear(),
                              root);
View Full Code Here

Examples of com.ponysdk.generator.Root

        for (final String d : split) {

            final List<File> files = read(new File(d));
            for (final File file : files) {
                System.out.println("file = " + file);
                final Root root = (Root) unmarshaller.unmarshal(file);
                definitions.add(root);
            }
        }
        return definitions;
    }
View Full Code Here

Examples of com.vaadin.ui.Root

     * @return an application displaying that layout
     */
    public DevApplication wrapLayout(Layout layout) {
        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        final Root root;
        if (server.getConfig().isDevelopmentHeader()) {
            final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
            mainLayout.setSizeFull();
            mainLayout.setSplitPosition(20, Sizeable.Unit.PIXELS);
            mainLayout.setLocked(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.