public class ExpressionUtil
extends java.lang.Object
构造器和说明 |
---|
ExpressionUtil() |
限定符和类型 | 方法和说明 |
---|---|
static <T> java.util.List<T> |
buildTree(java.util.List<T> flatList,
FieldMetaData child,
FieldMetaData parent,
FieldMetaData list,
io.github.kiryu1223.expressionTree.delegate.Func1<T,java.util.Collection<T>> func) |
static <R> R |
cast(java.lang.Object o)
强制类型转换
|
static AsName |
doGetAsName(java.lang.String as,
java.util.Set<java.lang.String> asNames) |
static java.lang.String |
getFirst(java.lang.Class<?> c) |
static java.lang.Class<?> |
getTargetType(java.lang.reflect.Type type) |
static boolean |
isBool(java.lang.Class<?> type)
是否为bool类型
|
static boolean |
isByte(java.lang.Class<?> type)
是否为byte类型
|
static boolean |
isChar(java.lang.Class<?> type)
是否为char类型
|
static boolean |
isDate(java.lang.Class<?> type)
是否为date类型
|
static boolean |
isDateTime(java.lang.Class<?> type)
是否为datetime类型
|
static boolean |
isDecimal(java.lang.Class<?> type)
是否为decimal类型
|
static boolean |
isDouble(java.lang.Class<?> type)
是否为double类型
|
static boolean |
isDynamicColumn(java.lang.reflect.Method method) |
static boolean |
isEquals(io.github.kiryu1223.expressionTree.expressions.MethodCallExpression methodCall) |
static boolean |
isFloat(java.lang.Class<?> type)
是否为float类型
|
static boolean |
isGetter(java.lang.reflect.Method method)
判断是否为getter方法
|
static boolean |
isGroupKey(java.util.Map<io.github.kiryu1223.expressionTree.expressions.ParameterExpression,AsName> parameters,
io.github.kiryu1223.expressionTree.expressions.Expression expression)
判断是否为分组键
|
static boolean |
isInt(java.lang.Class<?> type)
是否为int类型
|
static boolean |
isLong(java.lang.Class<?> type)
是否为long类型
|
static boolean |
isProperty(java.util.Map<io.github.kiryu1223.expressionTree.expressions.ParameterExpression,AsName> asNameMap,
io.github.kiryu1223.expressionTree.expressions.FieldSelectExpression fieldSelect)
判断是否为属性表达式
|
static boolean |
isProperty(java.util.Map<io.github.kiryu1223.expressionTree.expressions.ParameterExpression,AsName> asNameMap,
io.github.kiryu1223.expressionTree.expressions.MethodCallExpression methodCall)
判断是否为属性表达式
|
static boolean |
isSetter(java.lang.reflect.Method method)
判断是否为setter方法
|
static boolean |
isShort(java.lang.Class<?> type)
是否为short类型
|
static boolean |
isSqlExtensionExpressionMethod(java.lang.reflect.Method method)
判断是否为sql扩展方法
|
static boolean |
isSqlOperatorMethod(java.lang.reflect.Method method)
判断是否为sql操作符方法
|
static boolean |
isString(java.lang.Class<?> type)
是否为string类型
|
static boolean |
isTime(java.lang.Class<?> type)
是否为time类型
|
static boolean |
isVoid(java.lang.Class<?> c)
是否为void类型
|
static java.lang.Class<?> |
upperClass(java.lang.Class<?> c)
转换为包装类型
|
public static boolean isDynamicColumn(java.lang.reflect.Method method)
public static boolean isEquals(io.github.kiryu1223.expressionTree.expressions.MethodCallExpression methodCall)
public static boolean isProperty(java.util.Map<io.github.kiryu1223.expressionTree.expressions.ParameterExpression,AsName> asNameMap, io.github.kiryu1223.expressionTree.expressions.MethodCallExpression methodCall)
public static boolean isProperty(java.util.Map<io.github.kiryu1223.expressionTree.expressions.ParameterExpression,AsName> asNameMap, io.github.kiryu1223.expressionTree.expressions.FieldSelectExpression fieldSelect)
public static boolean isGroupKey(java.util.Map<io.github.kiryu1223.expressionTree.expressions.ParameterExpression,AsName> parameters, io.github.kiryu1223.expressionTree.expressions.Expression expression)
public static boolean isGetter(java.lang.reflect.Method method)
public static boolean isSetter(java.lang.reflect.Method method)
public static boolean isSqlOperatorMethod(java.lang.reflect.Method method)
public static boolean isSqlExtensionExpressionMethod(java.lang.reflect.Method method)
public static <R> R cast(java.lang.Object o)
public static java.lang.Class<?> getTargetType(java.lang.reflect.Type type)
public static boolean isVoid(java.lang.Class<?> c)
public static boolean isBool(java.lang.Class<?> type)
public static boolean isChar(java.lang.Class<?> type)
public static boolean isString(java.lang.Class<?> type)
public static boolean isInt(java.lang.Class<?> type)
public static boolean isLong(java.lang.Class<?> type)
public static boolean isByte(java.lang.Class<?> type)
public static boolean isDateTime(java.lang.Class<?> type)
public static boolean isTime(java.lang.Class<?> type)
public static boolean isDate(java.lang.Class<?> type)
public static boolean isShort(java.lang.Class<?> type)
public static boolean isFloat(java.lang.Class<?> type)
public static boolean isDouble(java.lang.Class<?> type)
public static boolean isDecimal(java.lang.Class<?> type)
public static java.lang.Class<?> upperClass(java.lang.Class<?> c)
public static java.lang.String getFirst(java.lang.Class<?> c)
public static AsName doGetAsName(java.lang.String as, java.util.Set<java.lang.String> asNames)
public static <T> java.util.List<T> buildTree(java.util.List<T> flatList, FieldMetaData child, FieldMetaData parent, FieldMetaData list, io.github.kiryu1223.expressionTree.delegate.Func1<T,java.util.Collection<T>> func)