Class LeafNode

    • Constructor Detail

      • LeafNode

        public LeafNode()
    • Method Detail

      • isHidden

        public boolean isHidden()
        Description copied from interface: ILeafNode
        Returns true if the node was produced by a hidden token.
        Specified by:
        isHidden in interface ILeafNode
        Returns:
        true if the node was produced by a hidden token.
      • getTotalOffset

        public int getTotalOffset()
        Description copied from interface: INode
        Returns the offset of this node including hidden tokens.
        Specified by:
        getTotalOffset in interface INode
        Returns:
        the offset of this node including hidden tokens.
      • getTotalLength

        public int getTotalLength()
        Description copied from interface: INode
        Returns the length of this node including hidden tokens.
        Specified by:
        getTotalLength in interface INode
        Returns:
        the length of this node including hidden tokens.
      • getOffset

        public int getOffset()
        Description copied from interface: INode
        Returns the offset of this node excluding hidden tokens. If this node is a hidden leaf node or a composite node that does only contain hidden leaf nodes, the total offset is returned.
        Specified by:
        getOffset in interface INode
        Overrides:
        getOffset in class AbstractNode
        Returns:
        the offset of this node excluding hidden tokens.
      • getLength

        public int getLength()
        Description copied from interface: INode
        Returns the length of this node excluding hidden tokens. If this node is a hidden leaf node, the total length is returned.
        Specified by:
        getLength in interface INode
        Overrides:
        getLength in class AbstractNode
        Returns:
        the length of this node excluding hidden tokens.
      • basicSetTotalOffset

        protected void basicSetTotalOffset​(int offset)
      • basicSetTotalLength

        protected void basicSetTotalLength​(int length)
      • getLeafNodes

        public java.lang.Iterable<ILeafNode> getLeafNodes()
        Description copied from interface: INode
        Returns an iterable for all contained leaf nodes. Never null.
        Specified by:
        getLeafNodes in interface INode
        Overrides:
        getLeafNodes in class AbstractNode
        Returns:
        an iterable for all contained leaf nodes. Never null.