Search in sources :

Example 6 with ASTNode

use of org.beetl.core.statement.ASTNode in project beetl2.0 by javamonkey.

the class VarDescrption method toString.

public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("").append(attrList).append("\n");
    sb.append("where:");
    ;
    for (ASTNode w : where) {
        sb.append("索引:").append(((IVarIndex) w).getVarIndex()).append(",").append(w.token.line).append("行");
        sb.append(";");
    }
    sb.append("\n");
    return sb.toString();
}
Also used : IVarIndex(org.beetl.core.statement.IVarIndex) ASTNode(org.beetl.core.statement.ASTNode)

Aggregations

ASTNode (org.beetl.core.statement.ASTNode)6 IVarIndex (org.beetl.core.statement.IVarIndex)3 ArrayList (java.util.ArrayList)2 AjaxStatement (org.beetl.core.statement.AjaxStatement)2 BlockStatement (org.beetl.core.statement.BlockStatement)2 BreakStatement (org.beetl.core.statement.BreakStatement)2 ContinueStatement (org.beetl.core.statement.ContinueStatement)2 DirectiveStatement (org.beetl.core.statement.DirectiveStatement)2 EndStatement (org.beetl.core.statement.EndStatement)2 ForStatement (org.beetl.core.statement.ForStatement)2 GeneralForStatement (org.beetl.core.statement.GeneralForStatement)2 IfStatement (org.beetl.core.statement.IfStatement)2 ReturnStatement (org.beetl.core.statement.ReturnStatement)2 SelectStatement (org.beetl.core.statement.SelectStatement)2 Statement (org.beetl.core.statement.Statement)2 StaticTextASTNode (org.beetl.core.statement.StaticTextASTNode)2 StaticTextByteASTNode (org.beetl.core.statement.StaticTextByteASTNode)2 SwitchStatement (org.beetl.core.statement.SwitchStatement)2 TagStatement (org.beetl.core.statement.TagStatement)2 TagVarBindingStatement (org.beetl.core.statement.TagVarBindingStatement)2