@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface NodeInfo
Modifier and Type | Optional Element and Description |
---|---|
NodeCost |
cost
Provides a rough estimate for the cost of the annotated
Node . |
java.lang.String |
description
A human readable explanation of the purpose of the annotated
Node . |
java.lang.String |
language
A description, providing a user-readable explanation of the source language of the annotated
Node . |
java.lang.String |
shortName
Short name representing the node that can be used for debugging.
|
public abstract java.lang.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 java.lang.String description
Node
. Can be used e.g.
for debugging or visualization purposes.public abstract java.lang.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.