public abstract static class TruffleLanguage.LanguageReference<L extends TruffleLanguage> extends Object
Node.lookupLanguageReference(Class)
and the current language can be accessed
using the TruffleLanguage.LanguageReference.get()
method of the returned reference.
The current language might vary between executions
if
the reference is used with interoperability APIs in the AST of a foreign language.
Modifier | Constructor and Description |
---|---|
protected |
LanguageReference()
Constructors for subclasses.
|
Modifier and Type | Method and Description |
---|---|
abstract L |
get()
Returns the current language of the current execution context.
|
protected LanguageReference()
public abstract L get()
context creation
or in the language
class constructor an IllegalStateException
is thrown. This methods is designed to
be called safely from compiled code paths.
The current language might vary between executions
if the reference is used with interoperability APIs in the AST of a foreign language.