public class FastFieldGetter extends FieldGetter
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
FastFieldGetter.Proxy
代理接口
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Map<Class<?>,FastFieldGetter.Proxy> |
cache |
protected static ProxyClassLoader |
classLoader |
protected static com.jfinal.template.expr.ast.FastFieldGetter.ProxyCompiler |
compiler |
protected static com.jfinal.template.expr.ast.FastFieldGetter.ProxyGenerator |
generator |
protected Method |
getterMethod |
protected static boolean |
outputCompileError |
protected FastFieldGetter.Proxy |
proxy |
| 构造器和说明 |
|---|
FastFieldGetter()
仅用于配置 Engine.addFieldGetter(0, new FastFieldGetter());
|
FastFieldGetter(FastFieldGetter.Proxy proxy,
Method getterMethod) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected FastFieldGetter.Proxy |
createProxy(Class<?> targetClass,
String fieldName) |
Object |
get(Object target,
String fieldName)
获取 target.fieldName 表达式的值
|
static void |
setOutputCompileError(boolean outputCompileError) |
FieldGetter |
takeOver(Class<?> targetClass,
String fieldName)
接管 target.fieldName 表达式,如果可以接管则返回接管对象,否则返回 null
|
String |
toString() |
notNullprotected static com.jfinal.template.expr.ast.FastFieldGetter.ProxyGenerator generator
protected static com.jfinal.template.expr.ast.FastFieldGetter.ProxyCompiler compiler
protected static ProxyClassLoader classLoader
protected static Map<Class<?>,FastFieldGetter.Proxy> cache
protected static boolean outputCompileError
protected FastFieldGetter.Proxy proxy
protected Method getterMethod
public FastFieldGetter(FastFieldGetter.Proxy proxy, Method getterMethod)
public FastFieldGetter()
public FieldGetter takeOver(Class<?> targetClass, String fieldName)
FieldGettertakeOver 在类中 FieldGettertargetClass - target.fieldName 表达式中 target 的 Class 类型fieldName - target.fieldName 表达式中的 fieldName 部分public Object get(Object target, String fieldName) throws Exception
FieldGetterget 在类中 FieldGettertarget - 目标对象fieldName - 字段名称Exceptionprotected FastFieldGetter.Proxy createProxy(Class<?> targetClass, String fieldName)
public static void setOutputCompileError(boolean outputCompileError)
Copyright © 2024. All rights reserved.