/** * @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 { /* * hold onto the RuntimeServices */ rsvc = (RuntimeServices) data; log = rsvc.getLog(); int i, k = jjtGetNumChildren(); for (i = 0; i < k; i++) { jjtGetChild(i).init( context, data); } return data; }
/** * @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 { /* * hold onto the RuntimeServices */ rsvc = (RuntimeServices) data; log = rsvc.getLog(); int i, k = jjtGetNumChildren(); for (i = 0; i < k; i++) { jjtGetChild(i).init( context, data); } return data; }
public Object init( InternalContextAdapter context, Object data) throws Exception { /* * hold onto the RuntimeServices */ rsvc = (RuntimeServices) data; int i, k = jjtGetNumChildren(); for (i = 0; i < k; i++) { try { jjtGetChild(i).init( context, data); } catch (ReferenceException re) { rsvc.error(re); } } return data; }
/** * @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 { /* * hold onto the RuntimeServices */ rsvc = (RuntimeServices) data; log = rsvc.getLog("rendering"); int i, k = jjtGetNumChildren(); for (i = 0; i < k; i++) { jjtGetChild(i).init( context, data); } line = first.beginLine; column = first.beginColumn; return data; }