Package gw.lang.reflect.features
Class MethodReference<R,T>
java.lang.Object
gw.lang.reflect.features.FeatureReference<R,T>
gw.lang.reflect.features.MethodReference<R,T>
- All Implemented Interfaces:
IFeatureReference<R,,T> IInvokableFeatureReference<R,,T> IMethodReference<R,T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]private IMethodInfoprivate ITypeprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMethodReference(IType rootType, String funcName, IType[] params, Object[] boundValues) -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates reflectivelyprotected ObjectObject[]Object[]Returns the method reference as a block in an invocation-friendly syntaxReturns the method info for this reference(package private) static IMethodInfogetMethodInfo(IType rootType, String funcName, IType[] params) inthashCode()protected booleantoBlock()Returns the method reference as a block in a transformation-friendly syntax
-
Field Details
-
_mi
-
_rootType
-
_boundValues
-
_voidReturn
private boolean _voidReturn
-
-
Constructor Details
-
MethodReference
-
MethodReference
private MethodReference()
-
-
Method Details
-
copyWithVoidReturn
- Specified by:
copyWithVoidReturnin interfaceIMethodReference<R,T>
-
hasReturn
protected boolean hasReturn()- Overrides:
hasReturnin classFeatureReference<R,T>
-
getMethodInfo
-
getMethodInfo
Description copied from interface:IMethodReferenceReturns the method info for this reference- Specified by:
getMethodInfoin interfaceIMethodReference<R,T>
-
getInvoke
Description copied from interface:IInvokableFeatureReferenceReturns the method reference as a block in an invocation-friendly syntax- Specified by:
getInvokein interfaceIInvokableFeatureReference<R,T>
-
toBlock
Description copied from interface:IInvokableFeatureReferenceReturns the method reference as a block in a transformation-friendly syntax- Specified by:
toBlockin interfaceIInvokableFeatureReference<R,T>
-
getBoundArgValues
- Specified by:
getBoundArgValuesin interfaceIInvokableFeatureReference<R,T> - Returns:
- an array of bound values if the feature had them, and null otherwise
-
evaluate
Description copied from interface:IInvokableFeatureReferenceEvaluates reflectively- Specified by:
evaluatein interfaceIInvokableFeatureReference<R,T>
-
evaluate
- Specified by:
evaluatein classFeatureReference<R,T>
-
getFullArgTypes
- Specified by:
getFullArgTypesin classFeatureReference<R,T>
-
getFeatureInfo
- Specified by:
getFeatureInfoin interfaceIFeatureReference<R,T>
-
getRootType
- Specified by:
getRootTypein interfaceIFeatureReference<R,T>
-
getBoundValues
-
equals
-
hashCode
public int hashCode()
-