Package com.oracle.truffle.api.nodes
Annotation Type NodeInfo
-
@Retention(RUNTIME) @Target(TYPE) public @interface NodeInfoAnnotation for providing additional information on nodes.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description NodeCostcostProvides a rough estimate for the cost of the annotatedNode.java.lang.StringdescriptionA human readable explanation of the purpose of the annotatedNode.java.lang.StringlanguageA description, providing a user-readable explanation of the source language of the annotatedNode.java.lang.StringshortNameShort name representing the node that can be used for debugging.
-
-
-
-
cost
NodeCost cost
Provides a rough estimate for the cost of the annotatedNode. This estimate can be used by runtime systems or guest languages to implement heuristics based on Truffle ASTs.- See Also:
Node.getCost(),NodeCost
- Default:
- com.oracle.truffle.api.nodes.NodeCost.MONOMORPHIC
-
-
-
description
java.lang.String description
A human readable explanation of the purpose of the annotatedNode. Can be used e.g. for debugging or visualization purposes.- Returns:
- the description
- Default:
- ""
-
-
-
language
java.lang.String language
A description, providing a user-readable explanation of the source language of the annotatedNode. Can be used e.g. for debugging or visualization purposes. Typically this information is set only in an abstract base node for the language implementation.- Returns:
- the description
- Default:
- ""
-
-