| 程序包 | 说明 |
|---|---|
| com.jfinal.template | |
| com.jfinal.template.expr | |
| com.jfinal.template.expr.ast | |
| com.jfinal.template.ext.directive | |
| com.jfinal.template.stat | |
| com.jfinal.template.stat.ast |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ExprList |
Directive.exprList
传递给指令的表达式列表
1:表达式列表可通过 exprList.eval(scope) 以及 exprList.evalExprList(scope) 进行求值
2:使用赋值表达式可实现参数传递功能
例如:#render("_hot.html", title="热门新闻", list=newsList)
|
| 限定符和类型 | 方法和说明 |
|---|---|
Output |
EngineConfig.getOutputDirective(ExprList exprList,
Location location) |
void |
Directive.setExprList(ExprList exprList)
指令被解析时注入指令参数表达式列表,继承类可以通过覆盖此方法对参数长度和参数类型进行校验
|
| 限定符和类型 | 方法和说明 |
|---|---|
ExprList |
ExprParser.parseExprList() |
| 限定符和类型 | 字段和说明 |
|---|---|
static ExprList |
ExprList.NULL_EXPR_LIST |
| 构造器和说明 |
|---|
ForCtrl(ExprList init,
Expr cond,
ExprList update,
Location location)
exprList?
|
Method(Expr expr,
String methodName,
ExprList exprList,
boolean optionalChain,
Location location) |
SharedMethod(SharedMethodKit sharedMethodKit,
String methodName,
ExprList exprList,
Location location) |
StaticMethod(String className,
String methodName,
ExprList exprList,
Location location) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ExprList |
CallDirective.paraExpr |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
NowDirective.setExprList(ExprList exprList) |
void |
CallDirective.setExprList(ExprList exprList) |
void |
DateDirective.setExprList(ExprList exprList) |
void |
RenderDirective.setExprList(ExprList exprList) |
void |
StringDirective.setExprList(ExprList exprList) |
void |
NumberDirective.setExprList(ExprList exprList) |
| 限定符和类型 | 方法和说明 |
|---|---|
Output |
OutputDirectiveFactory.getOutputDirective(ExprList exprList,
Location location) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Define.call(Env env,
Scope scope,
ExprList exprList,
Writer writer)
真正调用模板函数
|
void |
Stat.setExprList(ExprList exprList) |
| 构造器和说明 |
|---|
Call(String funcName,
ExprList exprList,
boolean callIfDefined) |
Case(ExprList exprList,
StatList statList,
Location location) |
Define(String functionName,
ExprList exprList,
StatList statList,
Location location) |
ElseIf(ExprList cond,
StatList statList,
Location location) |
If(ExprList cond,
StatList statList,
Location location) |
Include(Env env,
ExprList exprList,
String parentFileName,
Location location) |
Output(ExprList exprList,
Location location) |
ReturnIf(ExprList exprList,
Location location) |
Set(ExprList exprList,
Location location) |
SetGlobal(ExprList exprList,
Location location) |
SetLocal(ExprList exprList,
Location location) |
Switch(ExprList exprList,
Location location) |
Copyright © 2024. All rights reserved.