Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Type | Name and description |
---|---|
protected static boolean |
argumentClassIsParameterClass(Class argumentClass, Class parameterClass) Realizes an unsharp equal for the class. |
protected static Class |
getWrapperClass(Class c) Get wrapper class for a given class. |
protected static boolean |
isBigDecCategory(Class x) |
protected static boolean |
isDoubleCategory(Class x) |
protected static boolean |
isIntCategory(Class x) |
protected static boolean |
isLongCategory(Class x) |
protected static MethodType |
replaceWithMoreSpecificType(Object[] args, MethodType callSiteType) Replaces the types in the callSiteType parameter if more specific types given through the arguments. |
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.
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.
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.