Class TypeHelper
java.lang.Object
org.codehaus.groovy.vmplugin.v7.TypeHelper
This class contains helper methods for converting and comparing types.
WARNING: This class is for internal use only. do not use it outside of its
package and not outside groovy-core.
- Author:
- Jochen "blackdrag" Theodorou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanargumentClassIsParameterClass(Class argumentClass, Class parameterClass) Realizes an unsharp equal for the class.protected static ClassGet wrapper class for a given class.protected static booleanprotected static booleanprotected static booleanprotected static booleanprotected static MethodTypereplaceWithMoreSpecificType(Object[] args, MethodType callSiteType) Replaces the types in the callSiteType parameter if more specific types given through the arguments.
-
Constructor Details
-
TypeHelper
public TypeHelper()
-
-
Method Details
-
getWrapperClass
-
argumentClassIsParameterClass
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. -
replaceWithMoreSpecificType
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. -
isIntCategory
-
isLongCategory
-
isBigDecCategory
-
isDoubleCategory
-