Class RJavaImport
- java.lang.Object
-
- RJavaImport
-
- All Implemented Interfaces:
java.io.Serializable
public class RJavaImport extends java.lang.Object implements java.io.Serializable
Utilities to manage java packages and how they are "imported" to R databases. This is the back door of thejavaImport
system 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 boolean
exists(java.lang.String clazz)
boolean
exists_(java.lang.String clazz)
java.lang.String[]
getKnownClasses()
void
importPackage(java.lang.String packageName)
Adds a package to the list of "imported" packagesvoid
importPackage(java.lang.String[] packages)
Adds a set of packagesjava.lang.Class
lookup(java.lang.String clazz)
Look for the class in the set of packagesstatic java.lang.Class
lookup(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)
-
-