org.crsh.lang.spi
Interface Language

All Known Implementing Classes:
GroovyLanguage, GroovyLanguageProxy, JavaLanguage, LanguageProxy

public interface Language

Integration of a language.

Author:
Julien Viet

Method Summary
 void destroy(ShellSession session)
          Destroy session callback.
 Compiler getCompiler()
           
 String getDisplayName()
           
 String getName()
           
 Repl getRepl()
           
 void init(ShellSession session)
          Init session callback.
 boolean isActive()
           
 

Method Detail

getName

String getName()
Returns:
the language name

getDisplayName

String getDisplayName()
Returns:
the language display name, including the version if possible

isActive

boolean isActive()
Returns:
true if this language is active. Implementation can decide based on the runtime, for instance the Groovy language can be inactive when the Groovy runtime is not available

getRepl

Repl getRepl()
Returns:
the repl for this language, null should be returned when the language does not support the repl feature

getCompiler

Compiler getCompiler()
Returns:
the compiler for this language, null should be returned when the language does not support the compilation feature

init

void init(ShellSession session)
Init session callback.

Parameters:
session - the initialized session

destroy

void destroy(ShellSession session)
Destroy session callback.

Parameters:
session - the destroyed session


Copyright © 2015 eXo Platform SAS. All Rights Reserved.