public class ImportHandler
extends java.lang.Object
| Constructor and Description |
|---|
ImportHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
importClass(java.lang.String name)
Import a class.
|
void |
importPackage(java.lang.String packageName)
Import all the classes in a package.
|
java.lang.Class<?> |
resolve(java.lang.String name)
Resolve a class name from its imports.
|
public void importClass(java.lang.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(java.lang.String packageName)
packageName - The package name to be importedpublic java.lang.Class<?> resolve(java.lang.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 (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.