|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.insightful.splus.ClientUtilitiesReceiver
public class ClientUtilitiesReceiver
A server-side object providing access to a remote ClientUtilities object. Similar in use to com.insightful.gdevice.SGraphicsDeviceReceiver. Called from the S-PLUS engine to perform remote .JavaField() and .JavaMethod() calls.
ClientUtilities,
ClassUtilities,
SGraphicsDeviceReceiver| Constructor Summary | |
|---|---|
ClientUtilitiesReceiver()
Create a server-side object with a handle on a client-side ClientUtilities object. |
|
| Method Summary | |
|---|---|
void |
attachClassPath(String classPath)
Add a class loader for the specified class path to the class loader search list. |
void |
attachClassPath(String[] paths)
Add a class loader for the specified set of class paths to the class loader search list. |
boolean |
classExists(String className)
Test whether a class exists. |
boolean |
fieldExists(String className,
String fieldName)
Test whether a field exists. |
Object |
getStaticFieldValue(String className,
String fieldName)
Get the value of a static field. |
Object |
invokeStaticMethod(String className,
String methodName,
Class[] parameterTypes,
Object[] args)
Invoke a static method. |
boolean |
methodExists(String className,
String methodName,
Class[] parameterTypes)
Test whether a method exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientUtilitiesReceiver()
throws RemoteException
RemoteException| Method Detail |
|---|
public Object getStaticFieldValue(String className,
String fieldName)
throws ClassNotFoundException,
NoSuchFieldException,
IllegalAccessException,
RemoteException
className - The class containing the field of interest.fieldName - The field of interest.
ClassNotFoundException
NoSuchFieldException
IllegalAccessException
RemoteExceptionClass.getField(String name)
public Object invokeStaticMethod(String className,
String methodName,
Class[] parameterTypes,
Object[] args)
throws ClassNotFoundException,
NoSuchMethodException,
IllegalAccessException,
InvocationTargetException,
RemoteException
className - The class containing the method to invoke.methodName - The method to invoke.parameterTypes - Array of Class objects matching the arguments
to the method. The class for a primitive argument such as
"double" is obtained from the wrapper class "Double" using the
static field "Double.TYPE".args - Array of arguments to the method. Primitive arguments
such as "double" must be wrapped in an object such as "Double".
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
RemoteExceptionMethod.invoke(Object obj, Object [] args)
public boolean classExists(String className)
throws RemoteException
className - Class to find.
RemoteExceptionClassLoader.loadClass(String name)
public boolean fieldExists(String className,
String fieldName)
throws SecurityException,
RemoteException
className - The class containing the field of interest.fieldName - The field of interest.
SecurityException
RemoteException
public boolean methodExists(String className,
String methodName,
Class[] parameterTypes)
throws RemoteException
className - The class containing the method.methodName - The method.parameterTypes - Array of Class objects matching the arguments
to the method. The class for a primitive argument such as
"double" is obtained from the wrapper class "Double" using the
static field "Double.TYPE".
RemoteException
public void attachClassPath(String classPath)
throws Exception,
RemoteException
classPath - a jar file or a directory containing classes.
Exception
RemoteException
public void attachClassPath(String[] paths)
throws Exception,
RemoteException
paths - an array of jar files and directories containing classes.
Exception
RemoteException
|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||