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 SummaryConstructors Constructor Description RJavaImport(java.lang.ClassLoader loader)Constructor.
 - 
Method SummaryAll 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- 
lookuppublic 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
 
 - 
existspublic boolean exists(java.lang.String clazz) - Returns:
- true if the class is known
 
 - 
exists_public boolean exists_(java.lang.String clazz) 
 - 
importPackagepublic void importPackage(java.lang.String packageName) Adds a package to the list of "imported" packages- Parameters:
- packageName- package path name
 
 - 
importPackagepublic void importPackage(java.lang.String[] packages) Adds a set of packages- Parameters:
- packages- package path names
 
 - 
getKnownClassespublic java.lang.String[] getKnownClasses() - Returns:
- the simple names of the classes currently known by this importer
 
 - 
lookuppublic static java.lang.Class lookup(java.lang.String clazz, java.util.Set importers)
 
- 
 
-