/** * @see org.apache.velocity.runtime.parser.node.ParserVisitor#visit(org.apache.velocity.runtime.parser.node.ASTElseIfStatement, java.lang.Object) */ public Object visit(ASTElseIfStatement node, Object data) { data = node.childrenAccept(this, data); return data; }
/** * @see org.apache.velocity.runtime.parser.node.SimpleNode#render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer) */ public boolean render( InternalContextAdapter context, Writer writer) throws IOException,MethodInvocationException, ResourceNotFoundException, ParseErrorException { return jjtGetChild(1).render( context, writer ); } }
/** * @throws TemplateInitException * @see org.apache.velocity.runtime.parser.node.Node#init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object) */ public Object init( InternalContextAdapter context, Object data) throws TemplateInitException { Object obj = super.init(context, data); cleanupParserAndTokens(); // drop reference to Parser and all JavaCC Tokens return obj; }
final public void ElseIfStatement() throws ParseException { ASTElseIfStatement jjtn000 = new ASTElseIfStatement(this, JJTELSEIFSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);
final public void ElseIfStatement() throws ParseException { ASTElseIfStatement jjtn000 = new ASTElseIfStatement(this, JJTELSEIFSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);
final public void ElseIfStatement() throws ParseException { ASTElseIfStatement jjtn000 = new ASTElseIfStatement(this, JJTELSEIFSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);
/** * @see org.apache.velocity.runtime.parser.node.SimpleNode#render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer) */ public boolean render( InternalContextAdapter context, Writer writer) throws IOException,MethodInvocationException, ResourceNotFoundException, ParseErrorException { return jjtGetChild(1).render( context, writer ); } }
/** * @see org.apache.velocity.runtime.parser.node.ParserVisitor#visit(org.apache.velocity.runtime.parser.node.ASTElseIfStatement, java.lang.Object) */ public Object visit(ASTElseIfStatement node, Object data) { data = node.childrenAccept(this, data); return data; }
final public ASTBlock ElseIfStatement(ASTBlock previousBlock) throws ParseException { ASTElseIfStatement jjtn000 = new ASTElseIfStatement(this, JJTELSEIFSTATEMENT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t = null, u = null, elseif = null;
/** * @see org.apache.velocity.runtime.parser.node.SimpleNode#render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer) */ public boolean render( InternalContextAdapter context, Writer writer) throws IOException,MethodInvocationException, ResourceNotFoundException, ParseErrorException { return jjtGetChild(1).render( context, writer ); } }
/** * @see org.apache.velocity.runtime.parser.node.ParserVisitor#visit(org.apache.velocity.runtime.parser.node.ASTElseIfStatement, java.lang.Object) */ public Object visit(ASTElseIfStatement node, Object data) { data = node.childrenAccept(this, data); return data; }
/** * An ASTElseStatement is true if the expression * it contains evaluates to true. Expressions know * how to evaluate themselves, so we do that * here and return the value back to ASTIfStatement * where this node was originally asked to evaluate * itself. * @param context * @return True if all children are true. * @throws MethodInvocationException */ public boolean evaluate ( InternalContextAdapter context) throws MethodInvocationException { return jjtGetChild(0).evaluate(context); }
@Override public Object visit(ASTElseIfStatement node, Object data) { if (extraIndentation != null && extraIndentation.length() > 0) { node.childrenAccept(this, null); } return null; }
/** * An ASTElseStatement is true if the expression * it contains evaluates to true. Expressions know * how to evaluate themselves, so we do that * here and return the value back to ASTIfStatement * where this node was originally asked to evaluate * itself. * @param context * @return True if all childs are true. * @throws MethodInvocationException */ public boolean evaluate ( InternalContextAdapter context) throws MethodInvocationException { return jjtGetChild(0).evaluate(context); }
/** * An ASTElseStatement is true if the expression * it contains evaluates to true. Expressions know * how to evaluate themselves, so we do that * here and return the value back to ASTIfStatement * where this node was originally asked to evaluate * itself. * @param context * @return True if all childs are true. * @throws MethodInvocationException */ public boolean evaluate ( InternalContextAdapter context) throws MethodInvocationException { return jjtGetChild(0).evaluate(context); }