return;
}
JsonArray<PropertyDescriptor> properties = response.getProperties();
for (int i = 0, n = properties.size(); i < n; ++i) {
PropertyDescriptor property = properties.get(i);
boolean isGetterOrSetter =
(property.getGetterFunction() != null || property.getSetterFunction() != null);
if (isGetterOrSetter) {
if (property.getGetterFunction() != null) {
RemoteObjectNode child = RemoteObjectNode.createGetterProperty(
property.getName(), property.getGetterFunction());
appendNewNode(parentNode, child);
}
if (property.getSetterFunction() != null) {
RemoteObjectNode child = RemoteObjectNode.createSetterProperty(
property.getName(), property.getSetterFunction());
appendNewNode(parentNode, child);
}
} else if (property.getValue() != null) {
RemoteObjectNode child =
new RemoteObjectNode.Builder(property.getName(), property.getValue())
.setWasThrown(property.wasThrown())
.setDeletable(property.isConfigurable())
.setWritable(property.isWritable())
.setEnumerable(property.isEnumerable())
.build();
appendNewNode(parentNode, child);
}
}