public class TypeMatching extends Object
| Constructor and Description |
|---|
TypeMatching() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canAssign(Class<?>[] types,
Object[] arguments,
boolean varArgs) |
static boolean |
haveEnoughArgumentsForVarargs(Object[] arguments,
Constructor constructor,
Class<?>[] parameterTypes) |
static boolean |
haveEnoughArgumentsForVarargs(Object[] arguments,
Method method,
Class<?>[] parameterTypes) |
static boolean |
haveSameNumberOfArguments(Object[] arguments,
Class<?>[] parameterTypes) |
static boolean |
isSAM(Class<?> type) |
static boolean |
primitiveCompatible(Class<?> type,
Object value) |
static boolean |
samAssignment(Class<?> type,
Object value) |
static boolean |
valueAndTypeMatch(Class<?> type,
Object value) |
public static boolean haveEnoughArgumentsForVarargs(Object[] arguments, Constructor constructor, Class<?>[] parameterTypes)
public static boolean haveEnoughArgumentsForVarargs(Object[] arguments, Method method, Class<?>[] parameterTypes)
public static boolean haveSameNumberOfArguments(Object[] arguments, Class<?>[] parameterTypes)
public static boolean isSAM(Class<?> type)
Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.