Warning
This class is for internal use only. do not use it outside of its package and not outside groovy-core.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static boolean | argumentClassIsParameterClass(Class<?> argumentClass, Class<?> parameterClass)
Realizes an unsharp equal for the class. |
| protected static Class | |
| protected static boolean | |
| private static boolean | |
| protected static boolean | |
| protected static boolean | |
| protected static boolean | |
| protected static MethodType | replaceWithMoreSpecificType(Object[] args, MethodType callSiteType)
Replaces the types in the callSiteType parameter if more specific types given through the arguments. |
| TypeHelper | back to summary |
|---|---|
| public TypeHelper() | |
| argumentClassIsParameterClass | back to summary |
|---|---|
| protected static boolean argumentClassIsParameterClass(Class<?> argumentClass, Class<?> parameterClass) Realizes an unsharp equal for the class. In general we return true if the provided arguments are the same. But we will also return true if our argument class is a wrapper for the parameter class. For example the parameter is an int and the argument class is a wrapper. | |
| getWrapperClass | back to summary |
|---|---|
| protected static Class Get wrapper class for a given class. If the class is for a primitive number type, then the wrapper class will be returned. If it is no primitive number type, we return the class itself. | |
| isBigDecCategory | back to summary |
|---|---|
| protected static boolean isBigDecCategory(Class<?> x) | |
| isBigIntCategory | back to summary |
|---|---|
| private static boolean isBigIntCategory(Class<?> x) | |
| isDoubleCategory | back to summary |
|---|---|
| protected static boolean isDoubleCategory(Class<?> x) | |
| isIntCategory | back to summary |
|---|---|
| protected static boolean isIntCategory(Class<?> x) | |
| isLongCategory | back to summary |
|---|---|
| protected static boolean isLongCategory(Class<?> x) | |
| replaceWithMoreSpecificType | back to summary |
|---|---|
| protected static MethodType replaceWithMoreSpecificType(Object[] args, MethodType callSiteType) Replaces the types in the callSiteType parameter if more specific types given through the arguments. This is in general the case, unless the argument is null. | |