Skip navigation links
GraalVM Truffle Java API Reference
1.0.0-rc13-dev

84a80c90728eb05a4e4a362ced325cd2a8fd889d

Package com.oracle.truffle.api.instrumentation

The instrumentation API provides a way to introspect and inject behavior into interpreters written using the Truffle framework.

See: Description

Package com.oracle.truffle.api.instrumentation Description

The instrumentation API provides a way to introspect and inject behavior into interpreters written using the Truffle framework. To adopt instrumentation support for a guest language implementation you need to subclass syntax nodes of your language with InstrumentableNode. For details please refer to InstrumentableNode. To use the instrumentation framework implementors must implement the TruffleInstrument interface. Please refer to TruffleInstrument for further details. Guest languages that want to use the capabilities of the instrumentation framework can access Instrumenter for their TruffleLanguage by calling TruffleLanguage.Env.lookup(Class). SourceSectionFilter created using guest languages may be used to implement guest language features that require meta-programming capabilities.
Since:
0.8 or older
See Also:
TruffleInstrument, Instrumentable
Skip navigation links
GraalVM Truffle Java API Reference
1.0.0-rc13-dev

84a80c90728eb05a4e4a362ced325cd2a8fd889d

Copyright © 2012, 2019, Oracle and/or its affiliates. All rights reserved.