Class NodeModelBuilder


  • public class NodeModelBuilder
    extends java.lang.Object
    A stateful (!) builder that provides call back methods for clients who want to create a node model and maintain its invariants.
    Noextend:
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • NodeModelBuilder

        public NodeModelBuilder()
    • Method Detail

      • associateWithSemanticElement

        public void associateWithSemanticElement​(ICompositeNode node,
                                                 org.eclipse.emf.ecore.EObject astElement)
      • newCompositeNodeAsParentOf

        public ICompositeNode newCompositeNodeAsParentOf​(org.eclipse.emf.ecore.EObject grammarElement,
                                                         int lookahead,
                                                         ICompositeNode existing)
      • checkValidNewChild

        protected void checkValidNewChild​(AbstractNode child)
      • newCompositeNode

        public ICompositeNode newCompositeNode​(org.eclipse.emf.ecore.EObject grammarElement,
                                               int lookahead,
                                               ICompositeNode parent)
      • newRootNode

        public ICompositeNode newRootNode​(java.lang.String input)
      • replaceByRootNode

        protected void replaceByRootNode​(CompositeNode oldNode,
                                         RootNode rootNode)
        Since:
        2.8
      • replaceAndTransferLookAhead

        public void replaceAndTransferLookAhead​(INode oldNode,
                                                INode newRootNode)
      • setCompleteContent

        public void setCompleteContent​(ICompositeNode rootNode,
                                       java.lang.String completeContent)
      • setForcedFirstGrammarElement

        public void setForcedFirstGrammarElement​(RuleCall ruleCall)
      • setLookAhead

        protected void setLookAhead​(CompositeNode node,
                                    int lookAhead)
        Noreference:
        This method is not intended to be referenced by clients.
        Nooverride:
        This method is not intended to be re-implemented or extended by clients.