|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.expression.AutoImportServiceImpl
public class AutoImportServiceImpl
A service that allows users to refer to classes by partial names. Users import either package names (e.g. "java.lang.*) or class names (e.g. "java.lang.String") and afterwards the service uses those imports to resolve partial names (e.g. "String").
Constructor Summary | |
---|---|
AutoImportServiceImpl(String[] imports)
Ctor. |
Method Summary | |
---|---|
protected void |
addImport(String importName)
Add a package to the auto-import list, for testing. |
protected String[] |
getImports()
For testing, returns imports. |
Class |
resolveClass(String className)
Gets the Class object for the class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoImportServiceImpl(String[] imports)
imports
- - the package and class names that will be used to resolve partial class namesMethod Detail |
---|
public Class resolveClass(String className) throws ClassNotFoundException
AutoImportService
resolveClass
in interface AutoImportService
className
- - the name of the class to resolve
ClassNotFoundException
protected String[] getImports()
protected void addImport(String importName)
importName
- to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |