|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.android_scripting.interpreter.InterpreterConfiguration
public class InterpreterConfiguration
Manages and provides access to the set of available interpreters.
| Nested Class Summary | |
|---|---|
static interface |
InterpreterConfiguration.ConfigurationObserver
|
| Constructor Summary | |
|---|---|
InterpreterConfiguration(Context context)
|
|
| Method Summary | |
|---|---|
java.util.List<Interpreter> |
getInstalledInterpreters()
Returns the list of all installed interpreters. |
java.util.List<Interpreter> |
getInteractiveInterpreters()
Returns the list of interpreters that support interactive mode execution. |
Interpreter |
getInterpreterByName(java.lang.String interpreterName)
Returns the interpreter matching the provided name or null if no interpreter was found. |
Interpreter |
getInterpreterForScript(java.lang.String scriptName)
Returns the correct interpreter for the provided script name based on the script's extension or null if no interpreter was found. |
java.util.List<? extends Interpreter> |
getSupportedInterpreters()
Returns the list of all known interpreters. |
boolean |
isDiscoveryComplete()
|
void |
registerObserver(InterpreterConfiguration.ConfigurationObserver observer)
|
void |
startDiscovering()
|
void |
startDiscovering(java.lang.String mime)
|
void |
unregisterObserver(InterpreterConfiguration.ConfigurationObserver observer)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterpreterConfiguration(Context context)
| Method Detail |
|---|
public void startDiscovering()
public void startDiscovering(java.lang.String mime)
public boolean isDiscoveryComplete()
public void registerObserver(InterpreterConfiguration.ConfigurationObserver observer)
public void unregisterObserver(InterpreterConfiguration.ConfigurationObserver observer)
public java.util.List<? extends Interpreter> getSupportedInterpreters()
public java.util.List<Interpreter> getInstalledInterpreters()
public java.util.List<Interpreter> getInteractiveInterpreters()
public Interpreter getInterpreterByName(java.lang.String interpreterName)
public Interpreter getInterpreterForScript(java.lang.String scriptName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||