Package gw.lang.reflect.features
Interface IInvokableFeatureReference<R,T>
-
- All Superinterfaces:
IFeatureReference<R,T>
- All Known Subinterfaces:
IConstructorReference<R,T>,IMethodReference<R,T>
- All Known Implementing Classes:
BoundMethodReference,ConstructorReference,MethodReference
public interface IInvokableFeatureReference<R,T> extends IFeatureReference<R,T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectevaluate(java.lang.Object... args)Evaluates reflectivelyjava.lang.Object[]getBoundArgValues()TgetInvoke()Returns the method reference as a block in an invocation-friendly syntaxTtoBlock()Returns the method reference as a block in a transformation-friendly syntax-
Methods inherited from interface gw.lang.reflect.features.IFeatureReference
getFeatureInfo, getRootType
-
-
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(java.lang.Object... args)
Evaluates reflectively
-
getInvoke
T getInvoke()
Returns the method reference as a block in an invocation-friendly syntax
-
toBlock
T toBlock()
Returns the method reference as a block in a transformation-friendly syntax
-
getBoundArgValues
java.lang.Object[] getBoundArgValues()
- Returns:
- an array of bound values if the feature had them, and null otherwise
-
-