@FunctionalInterface protected static interface TruffleLanguage.ContextLocalFactory<C,T>
Modifier and Type | Method and Description |
---|---|
T |
create(C context)
Returns a new value for a context local of a language.
|
T create(C context)
null
and must return a stable and exact type per registered language. A
thread local must always return the same class
, even for
multiple instances of the same TruffleLanguage
. If this method throws an
AbstractTruffleException
the exception interop
messages may be executed without a context being entered.