com.googlecode.android_scripting.interpreter
Class Interpreter
java.lang.Object
com.googlecode.android_scripting.interpreter.Interpreter
- All Implemented Interfaces:
- InterpreterPropertyNames
- Direct Known Subclasses:
- HtmlInterpreter, ShellInterpreter
public class Interpreter
- extends java.lang.Object
- implements InterpreterPropertyNames
Combines all the execution-related specs of a particular interpreter installed in the system.
This class is instantiated through a map received from a concrete InterpreterProfider.
- Author:
- Damon Kohler (damonkohler@gmail.com), Alexey Reznichenko (alexey.reznichenko@gmail.com)
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Interpreter
public Interpreter()
buildFromMaps
public static Interpreter buildFromMaps(java.util.Map<java.lang.String,java.lang.String> data,
java.util.Map<java.lang.String,java.lang.String> environment_variables,
java.util.Map<java.lang.String,java.lang.String> arguments)
getEnvironmentVariables
public java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
getScriptCommand
public java.lang.String getScriptCommand()
getInteractiveCommand
public java.lang.String getInteractiveCommand()
getBinary
public java.io.File getBinary()
hasInteractiveMode
public boolean hasInteractiveMode()
getExtension
public java.lang.String getExtension()
getName
public java.lang.String getName()
getNiceName
public java.lang.String getNiceName()
getContentTemplate
public java.lang.String getContentTemplate()
getLanguage
public Language getLanguage()
getRpcText
public java.lang.String getRpcText(java.lang.String content,
MethodDescriptor rpc,
java.lang.String[] values)
isInstalled
public boolean isInstalled()
isUninstallable
public boolean isUninstallable()