Package Torello.Browser
Class Debugger.Scope
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Debugger.Scope
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Debugger
public static class Debugger.Scope extends BaseType implements java.io.Serializable
Scope description.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Debugger.java
- Open New Browser-Tab: Torello/Browser/Debugger.java
File Size: 5,138 Bytes Line Count: 129 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Debugger.Location
endLocation
Location in the source code where scope ends
OPTIONALString
name
[No Description Provided by Google]
OPTIONALRunTime.RemoteObject
object
Object representing the scope.Debugger.Location
startLocation
Location in the source code where scope starts
OPTIONALString
type
Scope type.
-
Constructor Summary
Constructors Constructor Description Scope(String type, RunTime.RemoteObject object, String name, Debugger.Location startLocation, Debugger.Location endLocation)
ConstructorScope(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
type
public final java.lang.String type
Scope type.
-
object
public final RunTime.RemoteObject object
Object representing the scope. Forglobal
andwith
scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
-
name
public final java.lang.String name
[No Description Provided by Google]
OPTIONAL
-
startLocation
public final Debugger.Location startLocation
Location in the source code where scope starts
OPTIONAL
-
endLocation
public final Debugger.Location endLocation
Location in the source code where scope ends
OPTIONAL
-
-
Constructor Detail
-
Scope
public Scope(java.lang.String type, RunTime.RemoteObject object, java.lang.String name, Debugger.Location startLocation, Debugger.Location endLocation)
Constructor- Parameters:
type
- Scope type.
Acceptable Values: ["global", "local", "with", "closure", "catch", "block", "script", "eval", "module", "wasm-expression-stack"]object
- Object representing the scope. Forglobal
andwith
scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.name
- -
OPTIONALstartLocation
- Location in the source code where scope starts
OPTIONALendLocation
- Location in the source code where scope ends
OPTIONAL
-
Scope
public Scope(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'Scope'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; Scope o = (Scope) other; return Objects.equals(this.type, o.type) && Objects.equals(this.object, o.object) && Objects.equals(this.name, o.name) && Objects.equals(this.startLocation, o.startLocation) && Objects.equals(this.endLocation, o.endLocation);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.type) + this.object.hashCode() + Objects.hashCode(this.name) + this.startLocation.hashCode() + this.endLocation.hashCode();
-
-