Elide GraalVM25.6.0-elide.4
All types
Versions and modules

NodeInfo

Javaannotation interfacein com.oracle.truffle.api.nodessince 0.8 or earlier

@Retention(RUNTIME)
@Target({TYPE})
@Inherited
public @interface NodeInfo

Annotation for providing additional information on nodes.

Elements4

String shortName()

shortName

since 0.8 or earlier
String shortName() default ""

Short name representing the node that can be used for debugging.

Returns

String
the short name

Default: ""

NodeCost cost()deprecated

cost

since 0.8 or earlier
@Deprecated
NodeCost cost() default MONOMORPHIC

Deprecated

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

String description()

description

since 0.8 or earlier
String 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 earlier
String 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: ""