Class Scope
- java.lang.Object
-
- org.openqa.selenium.devtools.v112.debugger.model.Scope
-
public class Scope extends java.lang.Object
Scope description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Scope.Type
-
Constructor Summary
Constructors Constructor Description Scope(Scope.Type type, RemoteObject object, java.util.Optional<java.lang.String> name, java.util.Optional<Location> startLocation, java.util.Optional<Location> endLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Location>
getEndLocation()
Location in the source code where scope endsjava.util.Optional<java.lang.String>
getName()
RemoteObject
getObject()
Object representing the scope.java.util.Optional<Location>
getStartLocation()
Location in the source code where scope startsScope.Type
getType()
Scope type.
-
-
-
Constructor Detail
-
Scope
public Scope(Scope.Type type, RemoteObject object, java.util.Optional<java.lang.String> name, java.util.Optional<Location> startLocation, java.util.Optional<Location> endLocation)
-
-
Method Detail
-
getType
public Scope.Type getType()
Scope type.
-
getObject
public RemoteObject getObject()
Object representing the scope. For `global` and `with` scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
-
getName
public java.util.Optional<java.lang.String> getName()
-
getStartLocation
public java.util.Optional<Location> getStartLocation()
Location in the source code where scope starts
-
getEndLocation
public java.util.Optional<Location> getEndLocation()
Location in the source code where scope ends
-
-