Package com.puppetlabs.xtext.dommodel.impl

Examples of com.puppetlabs.xtext.dommodel.impl.CompositeDomNode


  ICommentConfiguration<?> commentConfiguration;

  @Inject
  public DomModelSequenceAdapter(IHiddenTokenHelper hiddenTokenHelper, ICommentConfiguration<?> commentConfiguration,
      ILineSeparatorInformation lineSeparatorInformation, ISerializationDiagnostic.Acceptor errorAcceptor) {
    current = new CompositeDomNode();
    stack = Lists.newArrayList();
    this.errorAcceptor = errorAcceptor;
    this.hiddenTokenHelper = hiddenTokenHelper;
    this.lineSeparatorInformation = lineSeparatorInformation;
    this.commentConfiguration = commentConfiguration;
View Full Code Here


   * @throws IndexOutOfBoundsException
   *             - if the calls to push/pop are not balanced and the stack is empty.
   */
  protected void pop() {
    try {
      CompositeDomNode top = stack.remove(stack.size() - 1);
      current = top;
    }
    catch(ArrayIndexOutOfBoundsException e) {
      throw e;
    }
View Full Code Here

  /**
   * Adds current to the stack, and creates a new empty CompositeDomNode as the current node.
   */
  protected void push() {
    stack.add(current);
    CompositeDomNode newCurrent = new CompositeDomNode();
    current.addChild(newCurrent);
    current = newCurrent;
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.xtext.dommodel.impl.CompositeDomNode

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.