org.openl.main
Class OpenLMain

java.lang.Object
  extended by org.openl.main.OpenLMain
All Implemented Interfaces:
SourceCodeURLConstants

public class OpenLMain
extends Object
implements SourceCodeURLConstants

Starter for the openL.

Author:
sam

Field Summary
static String ARG_OPENL_NAME
           
static String ARG_SOURCE_FILE_NAME
           
 PrintStream err
           
 String[] methodArgs
           
 String methodName
           
 String openlName
           
static String ORG_OPENL
           
 PrintStream out
           
 String sourceFileName
           
 
Fields inherited from interface org.openl.main.SourceCodeURLConstants
AT_PREFIX, END, ERROR, FILE, HOST, OPENL, PROTOCOL, QSEP, QSTART, START
 
Constructor Summary
OpenLMain(String openlName)
           
 
Method Summary
static Map<String,String> getExtensionsMap()
           
static String getOpenlName(String filename)
          Returns openl name for a given filename in the form: org.openl.
static void main(String[] args)
          Trivial 'main' - delegates to non-static 'run'.
 String makeArgs()
          Helper to make command-line arguments to run OpenlMain.
static void registerExtension(String ext, String mapped)
           
 Object safeRunOpenl(String openlName, IOpenSourceCodeModule source, String method, Object[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORG_OPENL

public static final String ORG_OPENL
See Also:
Constant Field Values

ARG_SOURCE_FILE_NAME

public static final String ARG_SOURCE_FILE_NAME
See Also:
Constant Field Values

ARG_OPENL_NAME

public static final String ARG_OPENL_NAME
See Also:
Constant Field Values

openlName

public String openlName

sourceFileName

public String sourceFileName

methodName

public String methodName

methodArgs

public String[] methodArgs

err

public PrintStream err

out

public PrintStream out
Constructor Detail

OpenLMain

public OpenLMain(String openlName)
Method Detail

getOpenlName

public static String getOpenlName(String filename)
Returns openl name for a given filename in the form: org.openl. Examples: - file.j -> org.openl.j - file.j.simple -> org.openl.j.simple - file.j.xml.dom -> org.openl.j.xml.dom


getExtensionsMap

public static Map<String,String> getExtensionsMap()

registerExtension

public static void registerExtension(String ext,
                                     String mapped)

main

public static void main(String[] args)
                 throws Exception
Trivial 'main' - delegates to non-static 'run'.

Throws:
Exception

makeArgs

public String makeArgs()
Helper to make command-line arguments to run OpenlMain. Usage: - olm = new OpenlMain() - olm.sourceFileName = ... - ..... - String commandLine = "java OpenlMain " + olm.makeArgs());


safeRunOpenl

public Object safeRunOpenl(String openlName,
                           IOpenSourceCodeModule source,
                           String method,
                           Object[] params)


Copyright © 2012. All Rights Reserved.