Interface ParameterizedVisitor

    • Method Detail

      • getMaxNodeDepth

        int getMaxNodeDepth()
        Gets the maximum node depth this ParameterizedVisitor can accept when visiting an Element in AfterVisitor.visitAfter(Element, ExecutionContext). This method allows the targeted Element to emulate a DOM tree at the cost of performance. A ParameterizedVisitor with a maximum node depth of Integer.MAX_VALUE essentially means that the visited Element is a complete DOM tree.
        Returns:
        the maximum node depth this ParameterizedVisitor can traverse. Any value greater than 0 is valid.