Class CachedMethod.TypeArgumentConversion

  • Enclosing class:
    CachedMethod

    public static class CachedMethod.TypeArgumentConversion
    extends CachedMethod.ArgumentConversion
    A class representing an argument conversion to another ptolemy type, followed by the given conversion. This conversion always has preference two.
    • Method Detail

      • convert

        public java.lang.Object convert​(Token input)
                                 throws IllegalActionException
        Convert the given token into an object that can be used to invoke a method through the reflection mechanism. Derived classes will override this method to provide different types of argument conversions.
        Overrides:
        convert in class CachedMethod.ArgumentConversion
        Parameters:
        input - The token to be converted
        Returns:
        The object that can be used to invoke a method through the reflection method.
        Throws:
        IllegalActionException - Always thrown in this base class.
      • toString

        public java.lang.String toString()
        Return a string representation of this conversion.
        Overrides:
        toString in class CachedMethod.ArgumentConversion
        Returns:
        A string representation of this conversion.