org.openl.main
Class OpenLMain
java.lang.Object
org.openl.main.OpenLMain
- All Implemented Interfaces:
- SourceCodeURLConstants
public class OpenLMain
- extends Object
- implements SourceCodeURLConstants
Starter for the openL.
- Author:
- sam
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
OpenLMain
public OpenLMain(String openlName)
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.