jep
Class JepScriptEngineFactory

java.lang.Object
  extended by jep.JepScriptEngineFactory
All Implemented Interfaces:
javax.script.ScriptEngineFactory

public class JepScriptEngineFactory
extends java.lang.Object
implements javax.script.ScriptEngineFactory

 JepScriptEngineFactory.java - Embeds CPython in Java.

 Copyright (c) 2004, 2005 Mike Johnson.

 This file is licenced under the the zlib/libpng License.

 This software is provided 'as-is', without any express or implied
 warranty. In no event will the authors be held liable for any
 damages arising from the use of this software.
 
 Permission is granted to anyone to use this software for any
 purpose, including commercial applications, and to alter it and
 redistribute it freely, subject to the following restrictions:
 
     1. The origin of this software must not be misrepresented; you
     must not claim that you wrote the original software. If you use
     this software in a product, an acknowledgment in the product
     documentation would be appreciated but is not required.
 
     2. Altered source versions must be plainly marked as such, and
     must not be misrepresented as being the original software.
 
     3. This notice may not be removed or altered from any source
     distribution.

 Created: Tue Sep 5 18:35:03 2006

 

Version:
$Id: JepScriptEngineFactory.java 344 2006-09-17 23:10:10Z mrjohnson0 $
Author:
[mrjohnson0 at sourceforge.net] Mike Johnson

Constructor Summary
JepScriptEngineFactory()
           
 
Method Summary
 java.lang.String getEngineName()
          Describe getEngineName method here.
 java.lang.String getEngineVersion()
          Describe getEngineVersion method here.
 java.util.List<java.lang.String> getExtensions()
          (non-Javadoc)
 java.lang.String getLanguageName()
          Describe getLanguageName method here.
 java.lang.String getLanguageVersion()
          Describe getLanguageVersion method here.
 java.lang.String getMethodCallSyntax(java.lang.String obj, java.lang.String m, java.lang.String[] args)
          Describe getMethodCallSyntax method here.
 java.util.List<java.lang.String> getMimeTypes()
          (non-Javadoc)
 java.util.List<java.lang.String> getNames()
          (non-Javadoc)
 java.lang.String getOutputStatement(java.lang.String o)
          Describe getOutputStatement method here.
 java.lang.Object getParameter(java.lang.String p)
          Describe getParameter method here.
 java.lang.String getProgram(java.lang.String[] lines)
          Describe getProgram method here.
 javax.script.ScriptEngine getScriptEngine()
          Describe getScriptEngine method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JepScriptEngineFactory

public JepScriptEngineFactory()
Method Detail

getEngineName

public java.lang.String getEngineName()
Describe getEngineName method here.

Specified by:
getEngineName in interface javax.script.ScriptEngineFactory
Returns:
a String value

getEngineVersion

public java.lang.String getEngineVersion()
Describe getEngineVersion method here.

Specified by:
getEngineVersion in interface javax.script.ScriptEngineFactory
Returns:
a String value

getExtensions

public java.util.List<java.lang.String> getExtensions()
(non-Javadoc)

Specified by:
getExtensions in interface javax.script.ScriptEngineFactory
See Also:
ScriptEngineFactory.getExtensions()

getLanguageName

public java.lang.String getLanguageName()
Describe getLanguageName method here.

Specified by:
getLanguageName in interface javax.script.ScriptEngineFactory
Returns:
a String value

getLanguageVersion

public java.lang.String getLanguageVersion()
Describe getLanguageVersion method here.

Specified by:
getLanguageVersion in interface javax.script.ScriptEngineFactory
Returns:
a String value

getMethodCallSyntax

public java.lang.String getMethodCallSyntax(java.lang.String obj,
                                            java.lang.String m,
                                            java.lang.String[] args)
Describe getMethodCallSyntax method here.

Specified by:
getMethodCallSyntax in interface javax.script.ScriptEngineFactory
Parameters:
obj - a String value
m - a String value
args - a String[] value
Returns:
a String value

getMimeTypes

public java.util.List<java.lang.String> getMimeTypes()
(non-Javadoc)

Specified by:
getMimeTypes in interface javax.script.ScriptEngineFactory
See Also:
ScriptEngineFactory.getMimeTypes()

getNames

public java.util.List<java.lang.String> getNames()
(non-Javadoc)

Specified by:
getNames in interface javax.script.ScriptEngineFactory
See Also:
ScriptEngineFactory.getNames()

getOutputStatement

public java.lang.String getOutputStatement(java.lang.String o)
Describe getOutputStatement method here.

Specified by:
getOutputStatement in interface javax.script.ScriptEngineFactory
Parameters:
o - a String value
Returns:
a String value

getParameter

public java.lang.Object getParameter(java.lang.String p)
Describe getParameter method here.

Specified by:
getParameter in interface javax.script.ScriptEngineFactory
Parameters:
p - a String value
Returns:
an Object value

getProgram

public java.lang.String getProgram(java.lang.String[] lines)
Describe getProgram method here.

Specified by:
getProgram in interface javax.script.ScriptEngineFactory
Parameters:
lines - a String[] value
Returns:
a String value

getScriptEngine

public javax.script.ScriptEngine getScriptEngine()
Describe getScriptEngine method here.

Specified by:
getScriptEngine in interface javax.script.ScriptEngineFactory
Returns:
a ScriptEngine value