Class WhatElementsCanGoHereContext

  • All Implemented Interfaces:
    java.lang.Cloneable

    @API(type=EXTENDABLE,
         src=PRIVATE)
    public class WhatElementsCanGoHereContext
    extends Context
    It is used to determine the elements that can be inserted in the current context.
    • Field Detail

      • positionInDoc

        protected int positionInDoc
        Position in document.
      • doc

        protected ro.sync.document.SyntaxDocumentBase doc
        The syntax document.
    • Constructor Detail

      • WhatElementsCanGoHereContext

        public WhatElementsCanGoHereContext()
    • Method Detail

      • getPositionInDoc

        public int getPositionInDoc()
        Gets the position in the document.
        Returns:
        Returns the positionInDoc.
      • setPositionInDoc

        public void setPositionInDoc​(int positionInDoc)
        Sets the position in the document.
        Parameters:
        positionInDoc - The positionInDoc to set.
      • getDoc

        public ro.sync.document.SyntaxDocumentBase getDoc()
        Get the current document.
        Returns:
        Returns the current document.
      • setDoc

        public void setDoc​(ro.sync.document.SyntaxDocumentBase doc)
        Set the current document.
        Parameters:
        doc - The document to set.