|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.data.expr.CachedMethod.ArgumentConversion
public static class CachedMethod.ArgumentConversion
Class representing an argument conversion. Instances of this class are returned by getConversions(). Note that in most cases, it is not necessary to reference this class directly, as the invoke() method applies all the necessary conversions. It is provided for code, such as the code generator that need more than the usual amount of information about methods that have been found.
The preference is n index given an order to the preference of conversions. Lower preferences represent less desirable conversions than higher preferences.
Field Summary | |
---|---|
protected int |
_preference
The preference is n index given an order to the preference of conversions. |
Constructor Summary | |
---|---|
private |
CachedMethod.ArgumentConversion(int preference)
Construct an argument conversino. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int _preference
Constructor Detail |
---|
private CachedMethod.ArgumentConversion(int preference)
preference
- The preference of this conversion.
The preference is n index given an order to the preference of
conversions. Lower preferences represent less desirable
conversions than higher preferences.Method Detail |
---|
public int getPreference()
public java.lang.Object convert(Token input) throws IllegalActionException
input
- The token to be converted
IllegalActionException
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |