本文整理了Java中com.oracle.truffle.api.nodes.Node.getDebugProperties()
方法的一些代码示例,展示了Node.getDebugProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getDebugProperties()
方法的具体详情如下:
包路径:com.oracle.truffle.api.nodes.Node
类名称:Node
方法名:getDebugProperties
[英]Returns properties of this node interesting for debugging and can be overwritten by subclasses to add their own custom properties.
[中]返回此节点的属性,这些属性对调试很有意义,可以被子类覆盖以添加自己的自定义属性。
代码示例来源:origin: org.graalvm.compiler/compiler
private static void copyDebugProperties(ASTNode astNode, Node node) {
Map<String, Object> debugProperties = node.getDebugProperties();
for (Map.Entry<String, Object> property : debugProperties.entrySet()) {
astNode.properties.put(property.getKey(), property.getValue());
}
}
代码示例来源:origin: org.graalvm.truffle/truffle-api
private void copyDebugProperties(Node node) {
Map<String, Object> debugProperties = node.getDebugProperties();
for (Map.Entry<String, Object> property : debugProperties.entrySet()) {
setNodeProperty(node, property.getKey(), property.getValue());
}
}
代码示例来源:origin: com.oracle.truffle/truffle-api
private void copyDebugProperties(Node node) {
Map<String, Object> debugProperties = node.getDebugProperties();
for (Map.Entry<String, Object> property : debugProperties.entrySet()) {
setNodeProperty(node, property.getKey(), property.getValue());
}
}
代码示例来源:origin: com.oracle/truffle
private void copyDebugProperties(Node node) {
Map<String, Object> debugProperties = node.getDebugProperties();
for (Map.Entry<String, Object> property : debugProperties.entrySet()) {
setNodeProperty(node, property.getKey(), property.getValue());
}
}
代码示例来源:origin: org.graalvm.truffle/truffle-api
/**
* Converts this node to a textual representation useful for debugging.
*
* @since 0.8 or earlier
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getClass().getSimpleName());
Map<String, Object> properties = getDebugProperties();
boolean hasProperties = false;
for (Map.Entry<String, Object> entry : properties.entrySet()) {
sb.append(hasProperties ? "," : "<");
hasProperties = true;
sb.append(entry.getKey()).append("=").append(entry.getValue());
}
if (hasProperties) {
sb.append(">");
}
sb.append("@").append(Integer.toHexString(hashCode()));
return sb.toString();
}
代码示例来源:origin: com.oracle.truffle/truffle-api
/**
* Converts this node to a textual representation useful for debugging.
*
* @since 0.8 or earlier
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getClass().getSimpleName());
Map<String, Object> properties = getDebugProperties();
boolean hasProperties = false;
for (Map.Entry<String, Object> entry : properties.entrySet()) {
sb.append(hasProperties ? "," : "<");
hasProperties = true;
sb.append(entry.getKey()).append("=").append(entry.getValue());
}
if (hasProperties) {
sb.append(">");
}
sb.append("@").append(Integer.toHexString(hashCode()));
return sb.toString();
}
代码示例来源:origin: com.oracle/truffle
/**
* Converts this node to a textual representation useful for debugging.
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getClass().getSimpleName());
Map<String, Object> properties = getDebugProperties();
boolean hasProperties = false;
for (Map.Entry<String, Object> entry : properties.entrySet()) {
sb.append(hasProperties ? "," : "<");
hasProperties = true;
sb.append(entry.getKey()).append("=").append(entry.getValue());
}
if (hasProperties) {
sb.append(">");
}
sb.append("@").append(Integer.toHexString(hashCode()));
return sb.toString();
}
代码示例来源:origin: org.graalvm.compiler/compiler
@Override
public void nodeProperties(PolymorphicSpecializeGraph graph, PolymorphicSpecializeGraph.DumpNode node, Map<String, ? super Object> properties) {
properties.put("label", node.node.toString());
properties.put("ROOT?", node.node instanceof RootNode);
properties.put("LEAF?", node.edge == null);
properties.put("RootNode", node.node.getRootNode());
properties.putAll(node.node.getDebugProperties());
properties.put("SourceSection", node.node.getSourceSection());
if (Introspection.isIntrospectable(node.node)) {
final List<Introspection.SpecializationInfo> specializations = Introspection.getSpecializations(node.node);
for (Introspection.SpecializationInfo specialization : specializations) {
properties.put(specialization.getMethodName() + ".isActive", specialization.isActive());
properties.put(specialization.getMethodName() + ".isExcluded", specialization.isExcluded());
properties.put(specialization.getMethodName() + ".instances", specialization.getInstances());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!