类的使用
org.beetl.core.statement.Statement
使用Statement的程序包
程序包
说明
-
org.beetl.core中Statement的使用
返回Statement的org.beetl.core中的方法修饰符和类型方法说明protected StatementAntlrProgramBuilder.parseForSt(BeetlParser.ForStContext ctx) protected StatementAntlrProgramBuilder.parseTextOutputSt(BeetlParser.TextOutputStContext ctx) -
org.beetl.core.engine中Statement的使用
修饰符和类型方法说明模板解析之前可以手工增加一个beetl语句模板解析完毕后可以增加一个语句参数类型为Statement的org.beetl.core.engine中的方法修饰符和类型方法说明GrammarCreator.createBlock(Statement[] nodes, GrammarToken token) GrammarCreator.createFor(VarAssignSeqStatement varAssignSeq, Expression[] expInit, Expression condition, Expression[] expUpdate, Statement forPart, Statement elseforPart, GrammarToken token) GrammarCreator.createForIn(VarDefineNode forVar, Expression exp, boolean hasSafe, Statement forPart, Statement elseForPart) GrammarCreator.createIf(Expression condtion, Statement ifStatement, Statement elseStatement, GrammarToken token) GrammarCreator.createTag(String tagName, Expression[] expList, Statement block, GrammarToken token) GrammarCreator.createVarTag(String tagName, Expression[] expList, Statement block, VarDefineNode[] varDefine, GrammarToken token) GrammarCreator.createWhile(Expression exp, Statement whileBody, GrammarToken token) -
org.beetl.core.statement中Statement的使用
修饰符和类型类说明class#ajax id:{...}class{ statement1;statement2 }classbreak;classcontinue;class已过时。class; ; 多余分号classfor(user:list){}elsefor{}classfor(var a=0;a <10;i++){}elsefor{}classif()else{}class${exp,format=""}classreturnclasssame with switch-caseclass表达式语句,如fun();class模板的静态部分class模板的静态部分class类似go语言的switchclass标签,如:classclasstry{ }catch(error){ }classvar a=1,b=2classvar xxx = exp;classvar xxx.cc = exp;classwhile(exp) whileBody修饰符和类型字段说明TagStatement.blockForStatement.elseforPartGeneralForStatement.elseforPartIfStatement.elseStatementForStatement.forPartGeneralForStatement.forPartIfStatement.ifStatementBlockStatement.nodesProgramMetaData.statements模板的语句VarAssignSeqStatement.stsWhileStatement.whileBody参数类型为Statement的org.beetl.core.statement中的方法修饰符和类型方法说明protected final voidprotected final voidProgram.runWitchGoCheck(Statement[] statements, Context ctx) 参数类型为Statement的org.beetl.core.statement中的构造器限定符构造器说明BlockStatement(Statement[] nodes, GrammarToken token) ForStatement(VarDefineNode idNode, Expression exp, boolean hasSafe, Statement forPart, Statement elseforPart, GrammarToken token) for(idNode in exp) {forPath}elsefor{elseforPart}GeneralForStatement(VarAssignSeqStatement varAssignSeq, Expression[] expInit, Expression condition, Expression[] expUpdate, Statement forPart, Statement elseforPart, GrammarToken token) 构造方法 示例for(expInit;condtion;expUpdate){}IfStatement(Expression condition, Statement ifStatement, Statement elseStatement, GrammarToken token) TagStatement(String tagName, Expression[] paras, Statement block, GrammarToken token) TagVarBindingStatement(String tagName, Expression[] paras, Statement block, VarDefineNode[] varDefine, GrammarToken token) VarAssignSeqStatement(Statement[] sts, GrammarToken token) WhileStatement(Expression exp, Statement whileBody, GrammarToken token) -
org.beetl.core.statement.optimal中Statement的使用
参数类型为Statement的org.beetl.core.statement.optimal中的构造器 -
org.beetl.core.tag中Statement的使用
声明为Statement的org.beetl.core.tag中的字段参数类型为Statement的org.beetl.core.tag中的方法