Class ChildTextElement

  • All Implemented Interfaces:
    TextElementMatcher

    class ChildTextElement
    extends TextElement
    Represent the position of a child node in the NodeText of its parent.
    • Field Detail

      • child

        private final Node child
    • Constructor Detail

      • ChildTextElement

        ChildTextElement​(Node child)
    • Method Detail

      • getChild

        Node getChild()
      • isToken

        boolean isToken​(int tokenKind)
        Specified by:
        isToken in class TextElement
      • getNodeTextForWrappedNode

        NodeText getNodeTextForWrappedNode()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public boolean isChildOfClass​(java.lang.Class<? extends Node> nodeClass)
        Description copied from class: TextElement
        Is this TextElement representing a child of the given class?
        Specified by:
        isChildOfClass in class TextElement