public static class CachedMethod.MatrixMapCachedMethod extends CachedMethod
CachedMethod.ArgumentConversion, CachedMethod.ArrayMapCachedMethod, CachedMethod.BaseConvertCachedMethod, CachedMethod.MatrixMapCachedMethod, CachedMethod.TypeArgumentConversion
ARRAYTOKEN_CONVERSION, FUNCTION, IDENTITY_CONVERSION, IMPOSSIBLE_CONVERSION, METHOD, NATIVE_CONVERSION
Constructor and Description |
---|
MatrixMapCachedMethod(java.lang.String methodName,
Type[] argumentTypes,
int type,
CachedMethod cachedMethod,
boolean[] reducedArgs)
Constructs a CachedMethod$MatrixMapCachedMethod object.
|
Modifier and Type | Method and Description |
---|---|
Type |
getReturnType()
Return the type of the token that results from an invocation
of this method.
|
Token |
invoke(java.lang.Object[] argValues)
Run method represented by this cachedMethod.
|
boolean |
isValid()
Override the base class to correctly implement the
isValid() method.
|
java.lang.String |
methodDescription()
Return an appropriate description of the method being invoked.
|
_areConversionsPreferable, _getConversion, _polymorphicGetMethod, clear, equals, findMethod, getCachedMethodType, getConversions, getMethod, hashCode, isFunction, isMethod, toString
public MatrixMapCachedMethod(java.lang.String methodName, Type[] argumentTypes, int type, CachedMethod cachedMethod, boolean[] reducedArgs) throws IllegalActionException
methodName
- The name of the method.argumentTypes
- The types of the arguments.type
- An integer specifying the typecachedMethod
- The method to be invokedreducedArgs
- An array of booleans where if an
element of the array is true and the corresponding argument
is an MatrixToken, then invoke() handles those arguments
specially.IllegalActionException
- Not thrown in this derived
class, but the superclass throws it if the return type of
the cached method cannot be determined.public Token invoke(java.lang.Object[] argValues) throws IllegalActionException
invoke
in class CachedMethod
argValues
- An array of token objects that will be used
as the arguments.IllegalActionException
- If the invoked method
throws it.public boolean isValid()
isValid
in class CachedMethod
public Type getReturnType() throws IllegalActionException
CachedMethod
getReturnType
in class CachedMethod
IllegalActionException
- If a method or function with
the correct argument types was not found.public java.lang.String methodDescription()
methodDescription
in class CachedMethod