@Retention(value=SOURCE) @Target(value=TYPE) public static @interface TruffleLanguage.Registration
Truffle system. By annotating your
implementation of TruffleLanguage by this annotation you are just a one JAR drop
to the class path away from your users. Once they include your JAR in their application,
your language will be available to the Truffle virtual machine.| Modifier and Type | Required Element and Description |
|---|---|
String[] |
mimeType
List of MIME types associated with your language.
|
String |
name
Unique name of your language.
|
String |
version
Unique string identifying the language version.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
interactive
Specifies if the language is suitable for interactive evaluation of
sources. |
public abstract String name
PolyglotEngine.Language.getName() getter.public abstract String version
PolyglotEngine.Language.getVersion() getter.public abstract boolean interactive
sources. Interactive languages should be displayed in interactive
environments and presented to the user. The default value of this attribute is
true assuming majority of the languages is interactive. Change the value to
false to opt-out and turn your language into non-interactive one.true if the language should be presented to end-user in an
interactive environment