public static class CachedMethod.ArgumentConversion
extends java.lang.Object
The preference is n index given an order to the preference of conversions. Lower preferences represent less desirable conversions than higher preferences.
Modifier and Type | Field and Description |
---|---|
protected int |
_preference
The preference is n index given an order to the
preference of conversions.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getPreference()
Return the preference of this conversion, relative to
other conversions.
|
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.
|
protected int _preference
public int getPreference()
public java.lang.Object convert(Token input) throws IllegalActionException
input
- The token to be convertedIllegalActionException
- Always thrown in this
base class.public boolean isPreferableTo(CachedMethod.ArgumentConversion conversion)
conversion
- The conversion to be tested.public java.lang.String toString()
toString
in class java.lang.Object