|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EngineImportService
Service for engine-level resolution of static methods and aggregation methods.
Method Summary | |
---|---|
void |
addAggregation(String functionName,
String aggregationClass)
Add an aggregation function. |
void |
addImport(String importName)
Add an import, such as "com.mypackage.*" or "com.mypackage.MyClass". |
ConfigurationMethodRef |
getConfigurationMethodRef(String className)
Returns the method invocation caches for the from-clause for a class. |
AggregationSupport |
resolveAggregation(String functionName)
Used at statement compile-time to try and resolve a given function name into an aggregation method. |
Class |
resolveClass(String classNameAlias)
Resolves a given class name, either fully qualified and simple and imported to a class. |
Method |
resolveMethod(Class clazz,
String methodName,
Class[] paramTypes)
Resolves a given method name and list of parameter types to an instance or static method exposed by the given class. |
Method |
resolveMethod(String classNameAlias,
String methodName)
Resolves a given class and method name to a static method, expecting the method to exist exactly once and not be overloaded, with any parameters. |
Method |
resolveMethod(String classNameAlias,
String methodName,
Class[] paramTypes)
Resolves a given class, method and list of parameter types to a static method. |
Method Detail |
---|
ConfigurationMethodRef getConfigurationMethodRef(String className)
className
- the class name providing the method
void addImport(String importName) throws EngineImportException
importName
- is the import to add
EngineImportException
- if the information or format is invalidvoid addAggregation(String functionName, String aggregationClass) throws EngineImportException
functionName
- is the name of the function to make known.aggregationClass
- is the class that provides the aggregator
EngineImportException
- throw if format or information is invalidAggregationSupport resolveAggregation(String functionName) throws EngineImportUndefinedException, EngineImportException
functionName
- is the function name
EngineImportUndefinedException
- if the function is not a configured aggregation function
EngineImportException
- if the aggregation providing class could not be loaded or doesn't matchMethod resolveMethod(String classNameAlias, String methodName, Class[] paramTypes) throws EngineImportException
classNameAlias
- is the class name to usemethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the method cannot be resolved to a visible static methodClass resolveClass(String classNameAlias) throws EngineImportException
classNameAlias
- is the class name to use
EngineImportException
- if there was an error resolving the classMethod resolveMethod(String classNameAlias, String methodName) throws EngineImportException
classNameAlias
- is the class name to usemethodName
- is the method name
EngineImportException
- if the method cannot be resolved to a visible static method, or
if the method is overloadedMethod resolveMethod(Class clazz, String methodName, Class[] paramTypes) throws EngineImportException
clazz
- is the class to look for a fitting methodmethodName
- is the method nameparamTypes
- is parameter types match expression sub-nodes
EngineImportException
- if the method cannot be resolved to a visible static or instance method
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |