com.googlecode.android_scripting.interpreter
Class InterpreterConfiguration

java.lang.Object
  extended by com.googlecode.android_scripting.interpreter.InterpreterConfiguration

public class InterpreterConfiguration
extends java.lang.Object

Manages and provides access to the set of available interpreters.

Author:
Damon Kohler (damonkohler@gmail.com)

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

InterpreterConfiguration

public InterpreterConfiguration(Context context)
Method Detail

startDiscovering

public void startDiscovering()

startDiscovering

public void startDiscovering(java.lang.String mime)

isDiscoveryComplete

public boolean isDiscoveryComplete()

registerObserver

public void registerObserver(InterpreterConfiguration.ConfigurationObserver observer)

unregisterObserver

public void unregisterObserver(InterpreterConfiguration.ConfigurationObserver observer)

getSupportedInterpreters

public java.util.List<? extends Interpreter> getSupportedInterpreters()
Returns the list of all known interpreters.


getInstalledInterpreters

public java.util.List<Interpreter> getInstalledInterpreters()
Returns the list of all installed interpreters.


getInteractiveInterpreters

public java.util.List<Interpreter> getInteractiveInterpreters()
Returns the list of interpreters that support interactive mode execution.


getInterpreterByName

public Interpreter getInterpreterByName(java.lang.String interpreterName)
Returns the interpreter matching the provided name or null if no interpreter was found.


getInterpreterForScript

public 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.