Package jetbrains.mps.util
Interface QueryMethods.QueryMethod<T>
- 
- Type Parameters:
 T-
- Enclosing class:
 - QueryMethods
 
public static interface QueryMethods.QueryMethod<T>Handy wrapper aroundMethodto have typed return value and streamlined error message for errors. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tinvoke(Object contextObject) 
 - 
 
- 
- 
Method Detail
- 
invoke
T invoke(Object contextObject) throws QueryMethods.IllegalQueryMethodException, InvocationTargetException
- Parameters:
 contextObject- whatever query method takes as an argument- Returns:
 - whatever query method returns
 - Throws:
 QueryMethods.IllegalQueryMethodException- if there were troubles accessing the method (missing, wrong arguments, non-accessible, etc).InvocationTargetException- if there were exceptions in the user-supplied method implementation code.
 
 - 
 
 -