public final class ParseHelper extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isMatch(String match,
Object paramObj)
判断Zealot标签中`match`中的表达式是否匹配通过.
|
static boolean |
isNotMatch(String match,
Object paramObj)
判断Zealot标签中`match`中的表达式是否`不`匹配通过.
|
static boolean |
isTrue(String exp,
Object paramObj)
判断Zealot标签中`match`中的表达式是否匹配通过.
|
static Object |
parseExpress(String exp,
Object paramObj)
通过MVEL来解析表达式的值,如果出错不抛出异常.
|
static Object |
parseExpressWithException(String exp,
Object paramObj)
通过MVEL来解析表达式的值,如果出错则抛出异常.
|
static String |
parseTemplate(String template,
Object paramObj)
通过MVEL来解析模板的值.
|
public static Object parseExpress(String exp, Object paramObj)
exp - 待解析表达式paramObj - 参数对象public static Object parseExpressWithException(String exp, Object paramObj)
exp - 待解析表达式paramObj - 参数对象public static String parseTemplate(String template, Object paramObj)
template - 待解析表达式paramObj - 参数对象public static boolean isMatch(String match, Object paramObj)
match - match表达式paramObj - 参数上下文对象public static boolean isNotMatch(String match, Object paramObj)
match - match表达式paramObj - 参数上下文对象Copyright © 2018. All rights reserved.