|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microfocus.cobol.RuntimeSystem
Main class for COBOL/Java interoperability
Copyright: Copyright (c) 2002-2003
Field Summary | |
static short |
A_BLINK
Screen attribute flag |
static short |
A_BOLD
Screen attribute flag |
static short |
A_DIM
Screen attribute flag |
static short |
A_NORMAL
Screen attribute flag |
static short |
A_REVERSE
Screen attribute flag |
static short |
A_UNDER
Screen attribute flag |
static int |
BY_CONTENT
BY_CONTENT is used in non-OO calls to COBOL in the usageDescription array. |
static int |
BY_REFERENCE
BY_REFERENCE is used in non-OO calls to COBOL in the usageDescription array. |
static int |
BY_VALUE
BY_VALUE is used in non-OO calls to COBOL in the usageDescription array. |
protected static long |
cblClassHandle
COBOL proxy class handle, if one exists |
protected long |
cblInstanceHandle
COBOL proxy instance handle, if one exists |
protected static boolean |
isWindows
Running under Windows operating system |
protected static String |
osName
Operating system name |
static int |
SRV_CTL_ERRORHAND
SRV_CTL_ERRORHAND causes server error handling to be in effect |
static int |
SRV_CTL_ERRORHAND_ALL
SRV_CTL_ERRORHAND_ALL causes server error handling to be in effect all errors are handled regardless of type |
static int |
SRV_CTL_NOCANCEL
SRV_CTL_NOCANCEL prevents cancel being called by user code in this thread |
static int |
SRV_CTL_NONE
SRV_CTL_NONE no server control functions |
static int |
SRV_CTL_NOSTOPRUN
SRV_CTL_NOSTOPRUN prevents the called program from executing a real stop run, STOP RUN will cause direct return to Java |
static int |
SRV_CTL_NOTHREAD
SRV_CTL_NOTHREAD prevents the called program from creating threads |
static int |
SRV_CTL_THREADTIDY
SRV_CTL_THREADTIDY causes the thread to be tidied after this call completes, the next call on this thread will have new THREAD-LOCAL data. |
Constructor Summary | |
RuntimeSystem()
|
Method Summary | |
static void |
ccall(Object retCode,
String program,
Object[] array,
int[] usageDescription)
Calls a C function with a set of parameters which returns an object as a parameter |
static int |
ccall(String program,
Object[] array,
int[] usageDescription)
Calls a c function with a set of parameters which returns an object as a parameter |
static void |
cobaddstr(int attribute,
String name)
Displays the specified string on the screen at the virutal cursor's current position. |
static void |
cobaddstr(String name)
Displays the specified string on the screen at the virutal cursor's current position. |
static void |
cobassocclass(String fileName,
Class javaClass)
Associates a Java class and COBOL class |
static void |
cobassocclass(String fileName,
String javaClass)
Associates a Java class and COBOL class |
static boolean |
cobcall_boolean(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a boolean |
static Boolean |
cobcall_Boolean(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a Boolean |
static byte |
cobcall_byte(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a String |
static Byte |
cobcall_Byte(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a Byte |
static float |
cobcall_float(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a float |
static Float |
cobcall_Float(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a Float |
static int |
cobcall_int(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a int |
static Integer |
cobcall_Integer(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a Integer |
static void |
cobcall_Object(Object retValue,
String program,
Object[] array)
Calls a COBOL program with a set of parameters, then it updates the retCode object with return-code. |
static short |
cobcall_short(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a short |
static Short |
cobcall_Short(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a Short |
static String |
cobcall_String(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a String |
static void |
cobcall(Object retCode,
String program,
Object[] array,
int[] usageDescription)
Calls a COBOL program with a set of parameters which returns an object * as a parameter |
static void |
cobcall(Object retCode,
String program,
Object[] array,
int[] usageDescription,
boolean passJNIEnv_and_self)
Calls a COBOL program with a set of parameters which returns an object * as a parameter |
static void |
cobcall(Object retCode,
String program,
Object[] array,
int[] usageDescription,
boolean passJNIEnv_and_self,
int srvControl)
Calls a COBOL program with a set of parameters which returns an object * as a parameter |
static void |
cobcall(Object retCode,
String program,
ParameterList parameters)
Calls a COBOL program with a specifed ParameterList and updates a return-code object. |
static int |
cobcall(String program)
Calls a COBOL program with no parameters. |
static int |
cobcall(String program,
Object[] array)
Calls a COBOL program with a set of parameters which returns a int |
static int |
cobcall(String program,
ParameterList parameters)
Calls a COBOL program with a specifed ParameterList |
static void |
cobcancel(String program)
Causes the Runtime to CANCEL the program specified. |
static void |
cobclear()
Clears the screen and positions the cursor at line 0, column 0 strings. |
static int |
cobcols()
Returns the number of columns on the screen |
static void |
cobfinalize(Object o)
Destroys a COBOL proxy object |
static char |
cobgetch()
Gets a character from the keyboard |
static String |
cobgetenv(String name)
Allows you to find a COBOL/System environment variable |
boolean |
cobinvoke_boolean(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a boolean |
byte |
cobinvoke_byte(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a byte |
char |
cobinvoke_char(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a char |
double |
cobinvoke_double(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a double |
float |
cobinvoke_float(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a float |
int |
cobinvoke_int(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning an int |
long |
cobinvoke_long(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a long |
Object |
cobinvoke_object(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning an object |
short |
cobinvoke_short(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters returning a short |
void |
cobinvoke_void(String methodName,
Object[] params)
Invokes a COBOL instance with a set of parameters |
static boolean |
cobinvokestatic_boolean(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a boolean |
static byte |
cobinvokestatic_byte(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a byte |
static char |
cobinvokestatic_char(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a char |
static double |
cobinvokestatic_double(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a double |
static float |
cobinvokestatic_float(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a float |
static int |
cobinvokestatic_int(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning an int |
static long |
cobinvokestatic_long(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a long |
static Object |
cobinvokestatic_object(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning an object |
static short |
cobinvokestatic_short(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters returning a short |
static void |
cobinvokestatic_void(Class classObject,
String methodName,
Object[] params)
Invokes a COBOL class with a set of parameters |
static int |
coblines()
Returns the number of lines on the screen |
static int |
cobload(String libName)
Loads a COBOL library and makes visable any entry-points in the program Note: Using a platform specific name/extension will cause portability issues |
static int |
cobloadclass(String libName,
String fileName)
Loads a COBOL library and/or a class within that library. |
static int |
cobloadclass(String libName,
String fileName,
Class javaClass)
Loads a COBOL library and/or a class within that library and associates it with a particular Java class. |
static int |
cobloadclass(String libName,
String fileName,
String javaClassname)
Loads a COBOL library and/or a class within that library and associates it with a particular Java class of a given name. |
static void |
cobmove(int y,
int x)
Move to the row, column on the screen |
static int |
cobputenv(String name)
Allows you to dynamically change the COBOL environment a Runtime |
static void |
cobrcall(Object retCode,
String program,
ParameterList parameters)
Calls a COBOL program with a set of parameters, then updates the retCode object with return-code NB: This method allows the user to call legacy COBOL programs without requiring changes |
static void |
cobrcall(Object retCode,
String program,
ParameterList parameters,
int srvCtl)
Calls a COBOL program with a set of parameters and server control flags, then updates the retCode object with return-code NB: This method allows the user to call legacy COBOL programs without requiring changes NB: Server control flags modify behaviour of runtime system to allow execution in context of a Java app server |
static int |
cobrescanenv()
Causes the Runtime to rescan the environment for COBOL environment strings. |
static int |
cobthreadtidy()
Causes the COBOL thread associated with the currently running Java thread to be cleanly finalized. |
static void |
cobtidy()
Causes the Runtime to tidy itself up. |
protected static String |
getCobolRuntimeSupportLibraryName()
Internal use |
static int |
getSrvCtlDefault()
Gets the default SRV_CTL_ attributes for calls to COBOL programs |
static void |
main(String[] args)
Run this class in order to obtain the COBJVM environment variable for the current Java installation Setup CLASSPATH to include com.microfocus.cobol.jar and use: java -Dcom.microfocus.cobol.getcobjvmenv=off com.microfocus.cobol.Runtime |
static void |
setSrvCtlDefault(int srvCtlDefault)
Sets the default SRV_CTL_ attributes for calls to COBOL programs |
protected void |
updateParameters(Object[] old,
Object[] update)
Method declaration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BY_VALUE
cobcall(Object retCode, String program, Object[] array, int[] usageDescription)
,
ccall(Object retCode, String program, Object[] array, int[] usageDescription)
,
ccall(String program, Object[] array, int[] usageDescription)
,
Constant Field Valuespublic static final int BY_REFERENCE
cobcall(Object retCode, String program, Object[] array, int[] usageDescription)
,
ccall(Object retCode, String program, Object[] array, int[] usageDescription)
,
ccall(String program, Object[] array, int[] usageDescription)
,
Constant Field Valuespublic static final int BY_CONTENT
cobcall(Object retCode, String program, Object[] array, int[] usageDescription)
,
ccall(Object retCode, String program, Object[] array, int[] usageDescription)
,
ccall(String program, Object[] array, int[] usageDescription)
,
Constant Field Valuespublic static final int SRV_CTL_NONE
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final int SRV_CTL_NOTHREAD
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final int SRV_CTL_NOSTOPRUN
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final int SRV_CTL_NOCANCEL
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final int SRV_CTL_ERRORHAND
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final int SRV_CTL_ERRORHAND_ALL
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final int SRV_CTL_THREADTIDY
cobrcall(Object retCode, String program, ParameterList parameters, int srvControl)
,
Constant Field Valuespublic static final short A_NORMAL
cobaddstr(int attribute,String name)
,
Constant Field Valuespublic static final short A_BOLD
cobaddstr(int attribute,String name)
,
Constant Field Valuespublic static final short A_UNDER
cobaddstr(int attribute,String name)
,
Constant Field Valuespublic static final short A_REVERSE
cobaddstr(int attribute,String name)
,
Constant Field Valuespublic static final short A_BLINK
cobaddstr(int attribute,String name)
,
Constant Field Valuespublic static final short A_DIM
cobaddstr(int attribute,String name)
,
Constant Field Valuesprotected static boolean isWindows
protected static final String osName
protected static final long cblClassHandle
protected final long cblInstanceHandle
Constructor Detail |
public RuntimeSystem()
Method Detail |
public static void main(String[] args)
args
- command line arguments to com.microfocus.cobol.RuntimeSystempublic static void setSrvCtlDefault(int srvCtlDefault)
srvCtlDefault
- an bitwise-or of SRV_CTL_ valuescobrcall(Object retCode, String program, ParameterList parameters, int srvCtl)
public static int getSrvCtlDefault()
cobrcall(Object retCode, String program, ParameterList parameters, int srvCtl)
public static void cobcall(Object retCode, String program, Object[] array, int[] usageDescription, boolean passJNIEnv_and_self) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a stringarray
- array of objectsusageDescription
- array of usageDescriptions for array of objectspassJNIEnv_and_self
- - pass JNIENv *, jclass self to COBOL program
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
Integer myOneInt = new Integer(41); Object myParms[] = { myOneInt }; int usageUpdate[] = { RuntimeSystem.BY_REFERENCE } ; System.out.println("By Reference test"); RuntimeSystem.cobcall(null,"myfunc",myParms,usageUpdate,false); System.out.println("myfunc returned "+myOneInt);
working-storage section. copy "javatypes.cpy". linkage section. 01 a usage jint. procedure division using a. add 1 to a exit program returning 0.
public static void cobcall(Object retCode, String program, Object[] array, int[] usageDescription, boolean passJNIEnv_and_self, int srvControl) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a stringarray
- array of objectsusageDescription
- array of usageDescriptions for array of objectspassJNIEnv_and_self
- - pass JNIENv *, jclass self to COBOL programsrvControl
- an bitwise-or of SRV_CTL_ values
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
Integer myOneInt = new Integer(41); Object myParms[] = { myOneInt }; int usageUpdate[] = { RuntimeSystem.BY_REFERENCE } ; System.out.println("By Reference test"); RuntimeSystem.cobcall(null,"myfunc",myParms,usageUpdate,false); System.out.println("myfunc returned "+myOneInt);
working-storage section. copy "javatypes.cpy". linkage section. 01 a usage jint. procedure division using a. add 1 to a exit program returning 0.
public static void cobcall(Object retCode, String program, Object[] array, int[] usageDescription) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a stringarray
- array of objectsusageDescription
- array of usageDescriptions for array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static int cobcall(String program, ParameterList parameters) throws CobolException, Exception
program
- a stringparameters
- a ParameterList
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static void cobcall(Object retCode, String program, ParameterList parameters) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a stringparameters
- a array of parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static int cobcall(String program) throws CobolException, Exception
program
- to call
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static void ccall(Object retCode, String program, Object[] array, int[] usageDescription) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a stringarray
- array of objectsusageDescription
- array of usageDescriptions for array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static int ccall(String program, Object[] array, int[] usageDescription) throws CobolException, Exception
program
- a stringarray
- array of objectsusageDescription
- array of usageDescriptions for array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static void cobrcall(Object retCode, String program, ParameterList parameters) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a string specifying the program nameparameters
- a Parameter List
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
Integer rv = new Integer(); byte[] arg1 = new byte[30]; ParameterList pl = new ParameterList().add(arg1); RuntimeSystem.cobrcall(rv, "test", args);
public static void cobrcall(Object retCode, String program, ParameterList parameters, int srvCtl) throws CobolException, Exception
retCode
- an Object that contains the return-codeprogram
- a string specifying the program nameparameters
- a Parameter ListsrvCtl
- an bitwise-or of SRV_CTL_ values
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
Integer rv = new Integer(); byte[] arg1 = new byte[30]; ParameterList pl = new ParameterList().add(arg1); RuntimeSystem.cobrcall(rv, "test", args, RuntimeSystem.getSrvCtlDefault());
public static void cobcall_Object(Object retValue, String program, Object[] array) throws CobolException, Exception
retValue
- an Object that contains the return-codeprogram
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static String cobgetenv(String name) throws CobolException, Exception
name
- A name specifying the environment variable
to be searched for and returned.
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static int cobputenv(String name) throws CobolException, Exception
name
- A string to placed into the environment, with
the format NAME=VALUE
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static void cobclear() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static void cobaddstr(String name) throws CobolException, Exception
name
- text to be displayed on the screen
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static void cobaddstr(int attribute, String name) throws CobolException, Exception
attribute
- screen attribute to display the text inname
- text to be displayed on the screen
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static char cobgetch() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static int cobcols() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static int coblines() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static void cobmove(int y, int x) throws CobolException, Exception
y
- rowx
- column
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static int cobrescanenv() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static void cobcancel(String program) throws CobolException, Exception
program
- name of program to be CANCEL'ed
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
WARNING: Use with caution in a multi-threaded program.
public static void cobtidy() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exception
public static int cobthreadtidy() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static int cobcall_int(String program, Object[] array) throws CobolException, Exception
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static int cobcall(String program, Object[] array) throws CobolException, Exception
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static byte cobcall_byte(String program, Object[] array) throws CobolException, Exception
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static boolean cobcall_boolean(String program, Object[] array) throws CobolException, Exception
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static short cobcall_short(String program, Object[] array) throws CobolException, Exception
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static float cobcall_float(String program, Object[] array) throws CobolException, Exception
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static Integer cobcall_Integer(String program, Object[] array) throws Exception, CobolException
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static Byte cobcall_Byte(String program, Object[] array) throws Exception, CobolException
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static Boolean cobcall_Boolean(String program, Object[] array) throws Exception, CobolException
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static Short cobcall_Short(String program, Object[] array) throws Exception, CobolException
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static Float cobcall_Float(String program, Object[] array) throws Exception, CobolException
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static String cobcall_String(String program, Object[] array) throws Exception, CobolException
program
- a stringarray
- array of objects
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionprotected void updateParameters(Object[] old, Object[] update) throws CobolException, Exception
old
- update
-
CobolException
Exception
protected static String getCobolRuntimeSupportLibraryName()
public static void cobassocclass(String fileName, Class javaClass)
fileName
- file name of COBOL classjavaClass
- Java classpublic static void cobassocclass(String fileName, String javaClass)
fileName
- file name of COBOL classjavaClass
- full name of Java classpublic static int cobloadclass(String libName, String fileName)
static { cobloadclass("DllName", "MyCOBOLClass"); }
libName
- library name, if requiredfileName
- file name of COBOL class
cobloadclass(String libName, String fileName, Class javaClass)
,
cobloadclass(String libName, String fileName, String javaClassname)
public static int cobloadclass(String libName, String fileName, Class javaClass)
static { cobloadclass("DllName", "MyCOBOLClass", MyPackage.MyJavaClass.class)); }
libName
- library name, if requiredfileName
- file name of COBOL classjavaClass
- Java class
cobloadclass(String libName, String fileName)
,
cobloadclass(String libName, String fileName, String javaClassname)
public static int cobloadclass(String libName, String fileName, String javaClassname)
static { cobloadclass("DllName", "MyCOBOLClass", "MyPackage.MyJavaClass"); }
libName
- library name, if requiredfileName
- file name of COBOL classjavaClassname
- full name of Java class
cobloadclass(String libName, String fileName)
,
cobloadclass(String libName, String fileName, Class javaClass)
public static int cobload(String libName)
libName
- library name of lbr/sl/so/int/gnt
public boolean cobinvoke_boolean(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic byte cobinvoke_byte(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic char cobinvoke_char(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic short cobinvoke_short(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic int cobinvoke_int(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic long cobinvoke_long(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic float cobinvoke_float(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic double cobinvoke_double(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic void cobinvoke_void(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic Object cobinvoke_object(String methodName, Object[] params) throws CobolException, Exception
methodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static boolean cobinvokestatic_boolean(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static byte cobinvokestatic_byte(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static char cobinvokestatic_char(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static short cobinvokestatic_short(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static int cobinvokestatic_int(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static long cobinvokestatic_long(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static float cobinvokestatic_float(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static double cobinvokestatic_double(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static void cobinvokestatic_void(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static Object cobinvokestatic_object(Class classObject, String methodName, Object[] params) throws CobolException, Exception
classObject
- the Java classmethodName
- the method to invokeparams
- an array of objects containg the method parameters
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic static void cobfinalize(Object o) throws Throwable
o
- an object which has a COBOL proxy associated with it
Throwable
- - throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.