- java.lang.Object
- 
- org.datanucleus.util.Imports
 
- 
 public class Imports extends Object Utility class handling Imports.
- 
- 
Constructor SummaryConstructors Constructor Description Imports()Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidimportClass(String className)Method to import the specified class.voidimportPackage(String className)Method to import the package given by the specified class.voidparseImports(String imports)Utility to parse the imports.ClassresolveClassDeclaration(String classDecl, ClassLoaderResolver clr, ClassLoader primaryClassLoader)Utility to resolve a class declaration.
 
- 
- 
- 
Method Detail- 
importPackagepublic void importPackage(String className) Method to import the package given by the specified class.- Parameters:
- className- The class name
 
 - 
importClasspublic void importClass(String className) Method to import the specified class.- Parameters:
- className- Class to import
 
 - 
parseImportspublic void parseImports(String imports) Utility to parse the imports.- Parameters:
- imports- The Imports string
- Throws:
- NucleusUserException- when finding an invalid declaration
 
 - 
resolveClassDeclarationpublic Class resolveClassDeclaration(String classDecl, ClassLoaderResolver clr, ClassLoader primaryClassLoader) Utility to resolve a class declaration.- Parameters:
- classDecl- The class declaration
- clr- ClassLoaderResolver
- primaryClassLoader- The primary ClassLoader for the class
- Returns:
- The class
- Throws:
- ClassNotResolvedException- If there is a problem loading the class
- NucleusUserException- if a type is duplicately defined
 
 
- 
 
-