public class TypeUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<com.github.kayjamlang.core.Type> |
numberTypes |
static com.github.kayjamlang.core.Type |
UNCHECK |
| Constructor and Description |
|---|
TypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.github.kayjamlang.core.Type |
getMainType(com.github.kayjamlang.core.Type one,
com.github.kayjamlang.core.Type two) |
static java.lang.Number |
getNumberType(com.github.kayjamlang.core.Type type,
java.lang.Number number) |
static com.github.kayjamlang.core.Type |
getType(java.lang.Class<?> clazz) |
static boolean |
isAccept(java.util.List<com.github.kayjamlang.core.expressions.data.Argument> arguments,
java.util.List<java.lang.Object> objects)
Deprecated.
|
static boolean |
isAccept(MainContext mainContext,
java.util.List<com.github.kayjamlang.core.expressions.data.Argument> arguments,
java.util.List<com.github.kayjamlang.core.Type> types) |
static boolean |
isAccept(MainContext ctx,
com.github.kayjamlang.core.Type type,
com.github.kayjamlang.core.Type valueType) |
static boolean |
isAccept(com.github.kayjamlang.core.Type type,
java.lang.Object value)
Deprecated.
|
static boolean |
isNumber(java.lang.Class<?> clazz) |
public static final com.github.kayjamlang.core.Type UNCHECK
public static final java.util.List<com.github.kayjamlang.core.Type> numberTypes
@Deprecated
public static boolean isAccept(java.util.List<com.github.kayjamlang.core.expressions.data.Argument> arguments,
java.util.List<java.lang.Object> objects)
public static boolean isAccept(MainContext mainContext, java.util.List<com.github.kayjamlang.core.expressions.data.Argument> arguments, java.util.List<com.github.kayjamlang.core.Type> types)
public static com.github.kayjamlang.core.Type getType(java.lang.Class<?> clazz)
public static java.lang.Number getNumberType(com.github.kayjamlang.core.Type type,
java.lang.Number number)
public static boolean isNumber(java.lang.Class<?> clazz)
public static com.github.kayjamlang.core.Type getMainType(com.github.kayjamlang.core.Type one,
com.github.kayjamlang.core.Type two)
public static boolean isAccept(MainContext ctx, com.github.kayjamlang.core.Type type, com.github.kayjamlang.core.Type valueType)
@Deprecated
public static boolean isAccept(com.github.kayjamlang.core.Type type,
java.lang.Object value)