@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface NodeInfo
Modifier and Type | Optional Element and Description |
---|---|
NodeCost |
cost
Provides a rough estimate for the cost of the annotated
Node . |
String |
description
A human readable explanation of the purpose of the annotated
Node . |
String |
language
A description, providing a user-readable explanation of the source language of the annotated
Node . |
String |
shortName
Short name representing the node that can be used for debugging.
|
public abstract String shortName
public abstract NodeCost cost
Node
. This estimate can be
used by runtime systems or guest languages to implement heuristics based on Truffle ASTs.Node.getCost()
,
NodeCost
public abstract String language
Node
. 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.