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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundMethodReference
copyWithVoidReturn()
boolean
equals(Object o)
Object
evaluate(Object... args)
Evaluates reflectivelyObject
evaluate(Iterator args)
Object[]
getBoundArgValues()
Object
getCtx()
IFeatureInfo
getFeatureInfo()
List<IType>
getFullArgTypes()
T
getInvoke()
Returns the method reference as a block in an invocation-friendly syntaxIMethodInfo
getMethodInfo()
Returns the method info for this referenceIType
getRootType()
int
hashCode()
protected boolean
hasReturn()
T
toBlock()
Returns the method reference as a block in a transformation-friendly syntax
-
-
-
Method Detail
-
copyWithVoidReturn
public BoundMethodReference copyWithVoidReturn()
- Specified by:
copyWithVoidReturn
in interfaceIMethodReference<R,T>
-
hasReturn
protected boolean hasReturn()
- Overrides:
hasReturn
in classFeatureReference<R,T>
-
getMethodInfo
public IMethodInfo getMethodInfo()
Description copied from interface:IMethodReference
Returns the method info for this reference- Specified by:
getMethodInfo
in interfaceIMethodReference<R,T>
-
getInvoke
public 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
public Object evaluate(Object... args)
Description copied from interface:IInvokableFeatureReference
Evaluates reflectively- Specified by:
evaluate
in interfaceIInvokableFeatureReference<R,T>
-
evaluate
public Object evaluate(Iterator args)
- Specified by:
evaluate
in classFeatureReference<R,T>
-
getRootType
public IType getRootType()
- Specified by:
getRootType
in interfaceIFeatureReference<R,T>
-
toBlock
public 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
public Object[] getBoundArgValues()
- Specified by:
getBoundArgValues
in interfaceIInvokableFeatureReference<R,T>
- Returns:
- an array of bound values if the feature had them, and null otherwise
-
getFeatureInfo
public IFeatureInfo getFeatureInfo()
- Specified by:
getFeatureInfo
in interfaceIFeatureReference<R,T>
-
getFullArgTypes
public List<IType> getFullArgTypes()
- Specified by:
getFullArgTypes
in classFeatureReference<R,T>
-
getCtx
public Object getCtx()
-
-