com.googlecode.android_scripting.language
Class Language

java.lang.Object
  extended by com.googlecode.android_scripting.language.Language
Direct Known Subclasses:
BeanShellLanguage, HtmlLanguage, JavaScriptLanguage, LuaLanguage, PerlLanguage, PhpLanguage, PythonLanguage, RubyLanguage, ShellLanguage, SleepLanguage, SquirrelLanguage, TclLanguage

public class Language
extends java.lang.Object

Represents the programming language supported by the SL4A.

Author:
igor.v.karp@gmail.com (Igor Karp)

Constructor Summary
Language()
           
 
Method Summary
 java.lang.String autoClose(char token)
          Returns the string containing opening and closing tokens if the input is an opening token.
 java.lang.String getContentTemplate()
          Returns the initial template for newly created script.
 java.lang.String getRpcText(java.lang.String content, MethodDescriptor rpc, java.lang.String[] values)
          Returns the RPC call text with given parameter values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Language

public Language()
Method Detail

getContentTemplate

public java.lang.String getContentTemplate()
Returns the initial template for newly created script.


autoClose

public java.lang.String autoClose(char token)
Returns the string containing opening and closing tokens if the input is an opening token. Returns null otherwise.


getRpcText

public final java.lang.String getRpcText(java.lang.String content,
                                         MethodDescriptor rpc,
                                         java.lang.String[] values)
Returns the RPC call text with given parameter values.