Package com.puppetlabs.xtext.dommodel.impl

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


    n.setClassifiers(token == IDomNode.IMPLIED_EMPTY_WHITESPACE, NodeClassifier.IMPLIED);
  }

  protected BaseDomNode addCompositeNodeToCurrent(EObject rule, String token, ICompositeNode node, NodeType nodeType,
      Object... classifiers) {
    BaseDomNode result = new LeafDomNode();
    result.setText(token);
    result.setNode(node);
    result.setGrammarElement(rule);
    result.setNodeType(nodeType);
    result.setClassifiers(true, classifiers);
    addNodeToCurrent(result);
    return result;
  }
View Full Code Here


    return result;
  }

  protected BaseDomNode addLeafNodeToCurrent(EObject rule, String token, ILeafNode node, NodeType nodeType,
      Object... classifiers) {
    BaseDomNode result = new LeafDomNode();
    result.setText(token);
    result.setNode(node);
    result.setGrammarElement(rule);
    result.setNodeType(nodeType);
    result.setClassifiers(true, classifiers);
    if(node != null && node.isHidden()) {
      result.setClassifiers(true, NodeClassifier.HIDDEN);
    }
    addNodeToCurrent(result);
    return result;
  }
View Full Code Here

TOP

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

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.