Class DOMDebuggerImpl

  • All Implemented Interfaces:
    DOMDebugger

    public class DOMDebuggerImpl
    extends java.lang.Object
    implements DOMDebugger
    • Method Detail

      • getEventListeners

        public java.util.List<EventListener> getEventListeners​(java.lang.String objectId,
                                                               java.lang.Integer depth,
                                                               java.lang.Boolean pierce)
        Description copied from interface: DOMDebugger
        Returns event listeners of the given object.
        Specified by:
        getEventListeners in interface DOMDebugger
        Parameters:
        objectId - Identifier of the object to return listeners for.
        depth - The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
        pierce - Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.
        Returns:
        Array of relevant listeners.
      • removeDOMBreakpoint

        public void removeDOMBreakpoint​(java.lang.Integer nodeId,
                                        DOMBreakpointType type)
        Description copied from interface: DOMDebugger
        Removes DOM breakpoint that was set using setDOMBreakpoint.
        Specified by:
        removeDOMBreakpoint in interface DOMDebugger
        Parameters:
        nodeId - Identifier of the node to remove breakpoint from.
        type - Type of the breakpoint to remove.
      • removeEventListenerBreakpoint

        public void removeEventListenerBreakpoint​(java.lang.String eventName,
                                                  java.lang.String targetName)
        Description copied from interface: DOMDebugger
        Removes breakpoint on particular DOM event.
        Specified by:
        removeEventListenerBreakpoint in interface DOMDebugger
        Parameters:
        eventName - Event name.
        targetName - EventTarget interface name.
      • removeInstrumentationBreakpoint

        public void removeInstrumentationBreakpoint​(java.lang.String eventName)
        Description copied from interface: DOMDebugger
        Removes breakpoint on particular native event.
        Specified by:
        removeInstrumentationBreakpoint in interface DOMDebugger
        Parameters:
        eventName - Instrumentation name to stop on.
      • removeXHRBreakpoint

        public void removeXHRBreakpoint​(java.lang.String url)
        Description copied from interface: DOMDebugger
        Removes breakpoint from XMLHttpRequest.
        Specified by:
        removeXHRBreakpoint in interface DOMDebugger
        Parameters:
        url - Resource URL substring.
      • setDOMBreakpoint

        public void setDOMBreakpoint​(java.lang.Integer nodeId,
                                     DOMBreakpointType type)
        Description copied from interface: DOMDebugger
        Sets breakpoint on particular operation with DOM.
        Specified by:
        setDOMBreakpoint in interface DOMDebugger
        Parameters:
        nodeId - Identifier of the node to set breakpoint on.
        type - Type of the operation to stop upon.
      • setEventListenerBreakpoint

        public void setEventListenerBreakpoint​(java.lang.String eventName,
                                               java.lang.String targetName)
        Description copied from interface: DOMDebugger
        Sets breakpoint on particular DOM event.
        Specified by:
        setEventListenerBreakpoint in interface DOMDebugger
        Parameters:
        eventName - DOM Event name to stop on (any DOM event will do).
        targetName - EventTarget interface name to stop on. If equal to `"*"` or not provided, will stop on any EventTarget.
      • setInstrumentationBreakpoint

        public void setInstrumentationBreakpoint​(java.lang.String eventName)
        Description copied from interface: DOMDebugger
        Sets breakpoint on particular native event.
        Specified by:
        setInstrumentationBreakpoint in interface DOMDebugger
        Parameters:
        eventName - Instrumentation name to stop on.
      • setXHRBreakpoint

        public void setXHRBreakpoint​(java.lang.String url)
        Description copied from interface: DOMDebugger
        Sets breakpoint on XMLHttpRequest.
        Specified by:
        setXHRBreakpoint in interface DOMDebugger
        Parameters:
        url - Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
      • getEventListeners

        public java.util.List<EventListener> getEventListeners​(java.lang.String objectId)
        Description copied from interface: DOMDebugger
        Returns event listeners of the given object.
        Specified by:
        getEventListeners in interface DOMDebugger
        Parameters:
        objectId - Identifier of the object to return listeners for.
        Returns:
        Array of relevant listeners.
      • removeEventListenerBreakpoint

        public void removeEventListenerBreakpoint​(java.lang.String eventName)
        Description copied from interface: DOMDebugger
        Removes breakpoint on particular DOM event.
        Specified by:
        removeEventListenerBreakpoint in interface DOMDebugger
        Parameters:
        eventName - Event name.
      • setEventListenerBreakpoint

        public void setEventListenerBreakpoint​(java.lang.String eventName)
        Description copied from interface: DOMDebugger
        Sets breakpoint on particular DOM event.
        Specified by:
        setEventListenerBreakpoint in interface DOMDebugger
        Parameters:
        eventName - DOM Event name to stop on (any DOM event will do).