Class RJavaImport
- java.lang.Object
-
- RJavaImport
-
- All Implemented Interfaces:
java.io.Serializable
public class RJavaImport extends java.lang.Object implements java.io.SerializableUtilities to manage java packages and how they are "imported" to R databases. This is the back door of thejavaImportsystem in the R side- Author:
- Romain Francois <francoisromain@free.fr>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RJavaImport(java.lang.ClassLoader loader)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(java.lang.String clazz)booleanexists_(java.lang.String clazz)java.lang.String[]getKnownClasses()voidimportPackage(java.lang.String packageName)Adds a package to the list of "imported" packagesvoidimportPackage(java.lang.String[] packages)Adds a set of packagesjava.lang.Classlookup(java.lang.String clazz)Look for the class in the set of packagesstatic java.lang.Classlookup(java.lang.String clazz, java.util.Set importers)
-
-
-
Method Detail
-
lookup
public java.lang.Class lookup(java.lang.String clazz)
Look for the class in the set of packages- Parameters:
clazz- the simple class name- Returns:
- an instance of Class representing the actual class
-
exists
public boolean exists(java.lang.String clazz)
- Returns:
- true if the class is known
-
exists_
public boolean exists_(java.lang.String clazz)
-
importPackage
public void importPackage(java.lang.String packageName)
Adds a package to the list of "imported" packages- Parameters:
packageName- package path name
-
importPackage
public void importPackage(java.lang.String[] packages)
Adds a set of packages- Parameters:
packages- package path names
-
getKnownClasses
public java.lang.String[] getKnownClasses()
- Returns:
- the simple names of the classes currently known by this importer
-
lookup
public static java.lang.Class lookup(java.lang.String clazz, java.util.Set importers)
-
-