Class JavadocNodeImpl

  • All Implemented Interfaces:
    DetailNode

    public class JavadocNodeImpl
    extends java.lang.Object
    implements DetailNode
    Implementation of DetailNode interface that is mutable.
    • Constructor Detail

      • JavadocNodeImpl

        public JavadocNodeImpl()
    • Method Detail

      • getText

        public java.lang.String getText()
        Description copied from interface: DetailNode
        Node text.
        Specified by:
        getText in interface DetailNode
        Returns:
        node text
      • getLineNumber

        public int getLineNumber()
        Description copied from interface: DetailNode
        Node line number.
        Specified by:
        getLineNumber in interface DetailNode
        Returns:
        node line number
      • getColumnNumber

        public int getColumnNumber()
        Description copied from interface: DetailNode
        Node column number.
        Specified by:
        getColumnNumber in interface DetailNode
        Returns:
        node column number.
      • getIndex

        public int getIndex()
        Description copied from interface: DetailNode
        Node index among parent's children.
        Specified by:
        getIndex in interface DetailNode
        Returns:
        index
      • setType

        public void setType​(int type)
        Sets node's type.
        Parameters:
        type - Node's type.
      • setText

        public void setText​(java.lang.String text)
        Sets node's text content.
        Parameters:
        text - Node's text content.
      • setLineNumber

        public void setLineNumber​(int lineNumber)
        Sets line number.
        Parameters:
        lineNumber - Line number.
      • setColumnNumber

        public void setColumnNumber​(int columnNumber)
        Sets column number.
        Parameters:
        columnNumber - Column number.
      • setChildren

        public void setChildren​(DetailNode... children)
        Sets array of child nodes.
        Parameters:
        children - Array of child nodes.
      • setParent

        public void setParent​(DetailNode parent)
        Sets parent node.
        Parameters:
        parent - Parent node.
      • setIndex

        public void setIndex​(int index)
        Sets node's index among parent's children.
        Parameters:
        index - Node's index among parent's children.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object