Package | Description |
---|---|
ptolemy.data.expr |
The Ptolemy II Expression Language.
|
Modifier and Type | Class and Description |
---|---|
static class |
CachedMethod.TypeArgumentConversion
A class representing an argument conversion to another ptolemy type,
followed by the given conversion.
|
Modifier and Type | Field and Description |
---|---|
static CachedMethod.ArgumentConversion |
CachedMethod.ARRAYTOKEN_CONVERSION
Conversion from an ArrayToken to a Token array (Token[]).
|
static CachedMethod.ArgumentConversion |
CachedMethod.IDENTITY_CONVERSION
Identity conversion.
|
static CachedMethod.ArgumentConversion |
CachedMethod.IMPOSSIBLE_CONVERSION
Impossible argument conversion.
|
static CachedMethod.ArgumentConversion |
CachedMethod.NATIVE_CONVERSION
Conversion from tokens to Java native types.
|
Modifier and Type | Method and Description |
---|---|
protected static CachedMethod.ArgumentConversion |
CachedMethod._getConversion(java.lang.Class formal,
Type actual)
Return a conversion to convert the second argument into the class
given by the first argument.
|
CachedMethod.ArgumentConversion |
CachedMethod.BaseConvertCachedMethod.getBaseConversion()
Return the conversion that is applied to the object
upon which the method is invoked.
|
CachedMethod.ArgumentConversion[] |
CachedMethod.getConversions()
Return the conversions the are applied to the arguments of
this function or method.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
CachedMethod._areConversionsPreferable(CachedMethod.ArgumentConversion[] conversions1,
java.lang.Class[] arguments1,
CachedMethod.ArgumentConversion[] conversions2,
java.lang.Class[] arguments2)
Return true if the conversions in the first argument are
preferable to the conversions in the third argument, for methods
with argument types given by the second and fourth arguments.
|
protected static boolean |
CachedMethod._areConversionsPreferable(CachedMethod.ArgumentConversion[] conversions1,
java.lang.Class[] arguments1,
CachedMethod.ArgumentConversion[] conversions2,
java.lang.Class[] arguments2)
Return true if the conversions in the first argument are
preferable to the conversions in the third argument, for methods
with argument types given by the second and fourth arguments.
|
protected static java.lang.reflect.Method |
CachedMethod._polymorphicGetMethod(java.lang.Class library,
java.lang.String methodName,
Type[] argumentTypes,
CachedMethod.ArgumentConversion[] conversions)
Return the first method in the specified class that has the
specified name and can be invoked with the specified argument
types.
|
boolean |
CachedMethod.ArgumentConversion.isPreferableTo(CachedMethod.ArgumentConversion conversion)
Return true if this conversion is preferable to the given
conversion.
|
boolean |
CachedMethod.TypeArgumentConversion.isPreferableTo(CachedMethod.ArgumentConversion conversion)
Return true if this conversion is preferable to the given
conversion.
|
Constructor and Description |
---|
CachedMethod(java.lang.String methodName,
Type[] argumentTypes,
java.lang.reflect.Method method,
CachedMethod.ArgumentConversion[] conversions,
int type)
Construct a new CachedMethod.
|