Class ConsoleAPICalled

java.lang.Object
io.webfolder.cdp.event.runtime.ConsoleAPICalled

public class ConsoleAPICalled
extends java.lang.Object
Issued when console API was called
  • Constructor Summary

    Constructors 
    Constructor Description
    ConsoleAPICalled()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<RemoteObject> getArgs()
    Call arguments.
    java.lang.String getContext()
    Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
    java.lang.Integer getExecutionContextId()
    Identifier of the context where the call was made.
    StackTrace getStackTrace()
    Stack trace captured when the call was made.
    java.lang.Double getTimestamp()
    Call timestamp.
    ConsoleApiCallType getType()
    Type of the call.
    void setArgs​(java.util.List<RemoteObject> args)
    Call arguments.
    void setContext​(java.lang.String context)
    Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
    void setExecutionContextId​(java.lang.Integer executionContextId)
    Identifier of the context where the call was made.
    void setStackTrace​(StackTrace stackTrace)
    Stack trace captured when the call was made.
    void setTimestamp​(java.lang.Double timestamp)
    Call timestamp.
    void setType​(ConsoleApiCallType type)
    Type of the call.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getType

      public ConsoleApiCallType getType()
      Type of the call.
    • setType

      public void setType​(ConsoleApiCallType type)
      Type of the call.
    • getArgs

      public java.util.List<RemoteObject> getArgs()
      Call arguments.
    • setArgs

      public void setArgs​(java.util.List<RemoteObject> args)
      Call arguments.
    • getExecutionContextId

      public java.lang.Integer getExecutionContextId()
      Identifier of the context where the call was made.
    • setExecutionContextId

      public void setExecutionContextId​(java.lang.Integer executionContextId)
      Identifier of the context where the call was made.
    • getTimestamp

      public java.lang.Double getTimestamp()
      Call timestamp.
    • setTimestamp

      public void setTimestamp​(java.lang.Double timestamp)
      Call timestamp.
    • getStackTrace

      public StackTrace getStackTrace()
      Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
    • setStackTrace

      public void setStackTrace​(StackTrace stackTrace)
      Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
    • getContext

      public java.lang.String getContext()
      Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
    • setContext

      public void setContext​(java.lang.String context)
      Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.