public class ImportHandler extends Object
| Constructor and Description |
|---|
ImportHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
importClass(String name)
Import a class.
|
void |
importPackage(String packageName)
Import all the classes in a package.
|
Class<?> |
resolve(String name)
Resolve a class name from its imports.
|
public void importClass(String name) throws ELException
name - The full class name of the class to be importedELException - if the name is not a full class name.public void importPackage(String packageName)
packageName - The package name to be importedpublic Class<?> resolve(String name)
name - The name of the class to be resolved.
It is assumed that this is a name without a package.importClass(java.lang.String) or importPackage(java.lang.String), then its
Class instance. Otherwise null.Copyright © 2013. All Rights Reserved.