public class Imports extends Object
| Constructor and Description |
|---|
Imports()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
importClass(String className)
Method to import the specified class.
|
void |
importPackage(String className)
Method to import the package given by the specified class.
|
void |
parseImports(String imports)
Utility to parse the imports.
|
Class |
resolveClassDeclaration(String classDecl,
ClassLoaderResolver clr,
ClassLoader primaryClassLoader)
Utility to resolve a class declaration.
|
public void importPackage(String className)
className - The class namepublic void importClass(String className)
className - Class to importpublic void parseImports(String imports)
imports - The Imports stringNucleusUserException - when finding an invalid declarationpublic Class resolveClassDeclaration(String classDecl, ClassLoaderResolver clr, ClassLoader primaryClassLoader)
classDecl - The class declarationclr - ClassLoaderResolverprimaryClassLoader - The primary ClassLoader for the classClassNotResolvedException - If there is a problem loading the classNucleusUserException - if a type is duplicately definedCopyright © 2017. All rights reserved.