Package gw.lang.reflect.features
Class ConstructorReference<R,T>
- java.lang.Object
-
- gw.lang.reflect.features.FeatureReference<R,T>
-
- gw.lang.reflect.features.ConstructorReference<R,T>
-
- All Implemented Interfaces:
IConstructorReference<R,T>
,IFeatureReference<R,T>
,IInvokableFeatureReference<R,T>
public class ConstructorReference<R,T> extends FeatureReference<R,T> implements IConstructorReference<R,T>
-
-
Constructor Summary
Constructors Constructor Description ConstructorReference(IType rootType, IType[] params, Object[] boundValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Object
evaluate(Object... args)
Evaluates reflectivelyprotected Object
evaluate(Iterator args)
Object[]
getBoundArgValues()
Object[]
getBoundValues()
IConstructorInfo
getConstructorInfo()
Returns the method info for this referenceIFeatureInfo
getFeatureInfo()
List<IType>
getFullArgTypes()
T
getInvoke()
Returns the method reference as a block in an invocation-friendly syntaxIType
getRootType()
int
hashCode()
T
toBlock()
Returns the method reference as a block in a transformation-friendly syntax-
Methods inherited from class gw.lang.reflect.features.FeatureReference
hasReturn
-
-
-
-
Method Detail
-
getConstructorInfo
public IConstructorInfo getConstructorInfo()
Description copied from interface:IConstructorReference
Returns the method info for this reference- Specified by:
getConstructorInfo
in interfaceIConstructorReference<R,T>
-
evaluate
public Object evaluate(Object... args)
Description copied from interface:IInvokableFeatureReference
Evaluates reflectively- Specified by:
evaluate
in interfaceIInvokableFeatureReference<R,T>
-
getRootType
public IType getRootType()
- Specified by:
getRootType
in interfaceIFeatureReference<R,T>
-
getFeatureInfo
public IFeatureInfo getFeatureInfo()
- Specified by:
getFeatureInfo
in interfaceIFeatureReference<R,T>
-
evaluate
protected Object evaluate(Iterator args)
- Specified by:
evaluate
in classFeatureReference<R,T>
-
getFullArgTypes
public List<IType> getFullArgTypes()
- Specified by:
getFullArgTypes
in classFeatureReference<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
-
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>
-
getBoundValues
public Object[] getBoundValues()
-
-