ptolemy.data.expr
Class CachedMethod.TypeArgumentConversion

java.lang.Object
  extended byptolemy.data.expr.CachedMethod.ArgumentConversion
      extended byptolemy.data.expr.CachedMethod.TypeArgumentConversion
Enclosing class:
CachedMethod

public static class CachedMethod.TypeArgumentConversion
extends CachedMethod.ArgumentConversion

Class representing an argument conversion to another ptolemy type, Followed by the given conversion. This conversion always has preference two.


Field Summary
 
Fields inherited from class ptolemy.data.expr.CachedMethod.ArgumentConversion
_preference
 
Method Summary
 java.lang.Object convert(Token input)
          Convert the given token into an object that can be used to invoke a method through the reflection mechanism.
 boolean isPreferableTo(CachedMethod.ArgumentConversion conversion)
          Return true if this conversion is preferable to the given conversion.
 java.lang.String toString()
          Return a string representation of this conversion.
 
Methods inherited from class ptolemy.data.expr.CachedMethod.ArgumentConversion
getPreference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Throws:
IllegalActionException

isPreferableTo

public boolean isPreferableTo(CachedMethod.ArgumentConversion conversion)
Return true if this conversion is preferable to the given conversion.

Overrides:
isPreferableTo in class CachedMethod.ArgumentConversion

toString

public java.lang.String toString()
Return a string representation of this conversion.

Overrides:
toString in class CachedMethod.ArgumentConversion