@FunctionalInterface protected static interface TruffleInstrument.ContextLocalFactory<T>
| Modifier and Type | Method and Description |
|---|---|
T |
create(TruffleContext context)
Returns a new value for a context local of an instrument.
|
T create(TruffleContext context)
null and must return a stable and exact type per registered instrument. A
thread local must always return the same class, even for
multiple instances of the same TruffleInstrument.TruffleInstrument.createContextLocal(ContextLocalFactory)