Superclass for all observatory elements.
Definition at line 14 of file Element.java.
◆ Element()
org.dartlang.vm.service.element.Element.Element |
( |
JsonObject |
json | ) |
|
|
inline |
◆ getAsBoolean()
boolean org.dartlang.vm.service.element.Element.getAsBoolean |
( |
String |
name | ) |
|
|
inlinepackage |
A utility method to handle null values and JsonNull values.
Definition at line 40 of file Element.java.
40 {
41 final JsonElement element =
json.get(
name);
42 return (element ==
null || element == JsonNull.INSTANCE) ?
false : element.getAsBoolean();
43 }
DEF_SWITCHES_START aot vmservice shared library name
◆ getAsInt()
int org.dartlang.vm.service.element.Element.getAsInt |
( |
String |
name | ) |
|
|
inlinepackage |
A utility method to handle null values and JsonNull values.
Definition at line 32 of file Element.java.
32 {
33 final JsonElement element =
json.get(
name);
34 return (element == null || element == JsonNull.INSTANCE) ? -1 : element.getAsInt();
35 }
◆ getAsString()
String org.dartlang.vm.service.element.Element.getAsString |
( |
String |
name | ) |
|
|
inlinepackage |
A utility method to handle null values and JsonNull values.
Definition at line 24 of file Element.java.
24 {
25 final JsonElement element =
json.get(
name);
26 return (element == null || element == JsonNull.INSTANCE) ? null : element.getAsString();
27 }
◆ getJson()
JsonObject org.dartlang.vm.service.element.Element.getJson |
( |
| ) |
|
|
inline |
Return the underlying JSON backing this element.
Definition at line 48 of file Element.java.
◆ getListInt()
List< Integer > org.dartlang.vm.service.element.Element.getListInt |
( |
String |
memberName | ) |
|
|
inlinepackage |
Return a specific JSON member as a list of integers.
Definition at line 55 of file Element.java.
55 {
56 return jsonArrayToListInt(
json.getAsJsonArray(memberName));
57 }
◆ getListListInt()
List< List< Integer > > org.dartlang.vm.service.element.Element.getListListInt |
( |
String |
memberName | ) |
|
|
inlinepackage |
Return a specific JSON member as a list of list of integers.
Definition at line 69 of file Element.java.
69 {
70 JsonArray array =
json.getAsJsonArray(memberName);
71 if (array == null) {
72 return null;
73 }
74 int size = array.size();
76 for (
int index = 0; index <
size; ++index) {
77 result.add(jsonArrayToListInt(array.get(index).getAsJsonArray()));
78 }
80 }
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ getListString()
List< String > org.dartlang.vm.service.element.Element.getListString |
( |
String |
memberName | ) |
|
|
inlinepackage |
Return a specific JSON member as a list of strings.
Definition at line 62 of file Element.java.
62 {
63 return jsonArrayToListString(
json.getAsJsonArray(memberName));
64 }
◆ json
final JsonObject org.dartlang.vm.service.element.Element.json |
|
protected |
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/pkg/vm_service/java/src/org/dartlang/vm/service/element/Element.java