Package gw.lang.reflect.features
Class BoundMethodReference<R,T>
java.lang.Object
gw.lang.reflect.features.FeatureReference<R,T>
gw.lang.reflect.features.BoundMethodReference<R,T>
- All Implemented Interfaces:
IFeatureReference<R,
,T> IInvokableFeatureReference<R,
,T> IMethodReference<R,
T>
public class BoundMethodReference<R,T>
extends FeatureReference<R,T>
implements IMethodReference<R,T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]
private Object
private IMethodInfo
private IType
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates reflectivelyObject[]
getCtx()
Returns the method reference as a block in an invocation-friendly syntaxReturns the method info for this referenceint
hashCode()
protected boolean
toBlock()
Returns the method reference as a block in a transformation-friendly syntax
-
Field Details
-
_mi
-
_rootType
-
_ctx
-
_boundValues
-
_voidReturn
private boolean _voidReturn
-
-
Constructor Details
-
BoundMethodReference
-
BoundMethodReference
private BoundMethodReference()
-
-
Method Details
-
copyWithVoidReturn
- Specified by:
copyWithVoidReturn
in interfaceIMethodReference<R,
T>
-
hasReturn
protected boolean hasReturn()- Overrides:
hasReturn
in classFeatureReference<R,
T>
-
getMethodInfo
Description copied from interface:IMethodReference
Returns the method info for this reference- Specified by:
getMethodInfo
in interfaceIMethodReference<R,
T>
-
getInvoke
Description copied from interface:IInvokableFeatureReference
Returns the method reference as a block in an invocation-friendly syntax- Specified by:
getInvoke
in interfaceIInvokableFeatureReference<R,
T>
-
evaluate
Description copied from interface:IInvokableFeatureReference
Evaluates reflectively- Specified by:
evaluate
in interfaceIInvokableFeatureReference<R,
T>
-
evaluate
- Specified by:
evaluate
in classFeatureReference<R,
T>
-
getRootType
- Specified by:
getRootType
in interfaceIFeatureReference<R,
T>
-
toBlock
Description copied from interface:IInvokableFeatureReference
Returns the method reference as a block in a transformation-friendly syntax- Specified by:
toBlock
in interfaceIInvokableFeatureReference<R,
T>
-
getBoundArgValues
- Specified by:
getBoundArgValues
in interfaceIInvokableFeatureReference<R,
T> - Returns:
- an array of bound values if the feature had them, and null otherwise
-
getFeatureInfo
- Specified by:
getFeatureInfo
in interfaceIFeatureReference<R,
T>
-
getFullArgTypes
- Specified by:
getFullArgTypes
in classFeatureReference<R,
T>
-
getCtx
-
equals
-
hashCode
public int hashCode()
-