NodeInfo
@Retention(RUNTIME)
@Target({TYPE})
@Inherited
public @interface NodeInfoAnnotation for providing additional information on nodes.
Elements4
String shortName()
NodeCost cost()deprecated
cost
since 0.8 or earlier@Deprecated
NodeCost cost() default MONOMORPHICDeprecated
in 24.1 without replacement
Provides a rough estimate for the cost of the annotated Node. This estimate can be used by runtime systems or guest languages to implement heuristics based on Truffle ASTs.
Returns
NodeCost- No description.
Default: MONOMORPHIC
See also
String description()
description
since 0.8 or earlierString description() default ""A human readable explanation of the purpose of the annotated Node. Can be used e.g. for debugging or visualization purposes.
Returns
String- the description
Default: ""
String language()
language
since 0.8 or earlierString language() default ""A description, providing a user-readable explanation of the source language of the annotated 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.
Returns
String- the description
Default: ""