Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | Package Functions | List of all members
org.dartlang.vm.service.element.Element Class Reference
Inheritance diagram for org.dartlang.vm.service.element.Element:
org.dartlang.vm.service.element.RPCError

Public Member Functions

 Element (JsonObject json)
 
JsonObject getJson ()
 

Protected Attributes

final JsonObject json
 

Package Functions

String getAsString (String name)
 
int getAsInt (String name)
 
boolean getAsBoolean (String name)
 
List< Integer > getListInt (String memberName)
 
List< String > getListString (String memberName)
 
List< List< Integer > > getListListInt (String memberName)
 

Detailed Description

Superclass for all observatory elements.

Definition at line 14 of file Element.java.

Constructor & Destructor Documentation

◆ Element()

org.dartlang.vm.service.element.Element.Element ( JsonObject  json)
inline

Definition at line 17 of file Element.java.

17 {
18 this.json = json;
19 }

Member Function Documentation

◆ 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
Definition: switches.h:32

◆ 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.

48 {
49 return json;
50 }

◆ 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();
75 List<List<Integer>> result = new ArrayList<>();
76 for (int index = 0; index < size; ++index) {
77 result.add(jsonArrayToListInt(array.get(index).getAsJsonArray()));
78 }
79 return result;
80 }
GAsyncResult * result
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
Definition: switches.h:259

◆ 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 }

Member Data Documentation

◆ json

final JsonObject org.dartlang.vm.service.element.Element.json
protected

Definition at line 15 of file Element.java.


The documentation for this class was generated from the following file: