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.
|
void |
importStatic(java.lang.String name)
Import a static field or method.
|
java.lang.Class<?> |
resolveClass(java.lang.String name)
Resolve a class name.
|
java.lang.Class<?> |
resolveStatic(java.lang.String name)
Resolve a static field or method name.
|
public void importStatic(java.lang.String name)
throws ELException
name - The static member name, including the full class name, to be importedELException - if the name does not include a ".".public void importClass(java.lang.String name)
throws ELException
name - The full class name of the class to be importedELException - if the name does not include a ".".public void importPackage(java.lang.String packageName)
packageName - The package name to be importedpublic java.lang.Class<?> resolveClass(java.lang.String name)
name - The name of the class (without package name) to be resolved.importClass(java.lang.String) or importPackage(java.lang.String), then its
Class instance. Otherwise null.ELException - if the class is abstract or is an interface, or not public.public java.lang.Class<?> resolveStatic(java.lang.String name)
name - The name of the member(without package and class name) to be resolved.importStatic(java.lang.String), then the class object
representing the class that declares the static field or method. Otherwise null.ELException - if the class is not public, or is abstract or is an interface.