|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.el.ImportHandler
public class ImportHandler
Handles imports of class names and package names. An imported package name implicitly imports all the classes in the package. A class that has been imported can be used without its package name. The name is resolved to its full (package and class) name at evaluation time.
| Constructor Summary | |
|---|---|
ImportHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportHandler()
| Method Detail |
|---|
public void importClass(java.lang.String name)
throws ELException
name - The full class name of the class to be imported
ELException - 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||