Package cn.org.rapid_framework.velocity.directive.OverrideDirective

Examples of cn.org.rapid_framework.velocity.directive.OverrideDirective.OverrideNodeWrapper.render()


    }
    OverrideNodeWrapper parent = current.parentNode;
    if(parent == null) {
      throw new ParseErrorException("not found parent block for #super ");
    }
    return parent.render(context,writer);
  }



}
View Full Code Here


    Node topNode = node.jjtGetChild(1);
        if(overrideNode == null) {
          return topNode.render(context, writer);
        }else {
          Utils.setParentForTop(new OverrideNodeWrapper(topNode),overrideNode);
          return overrideNode.render(context, writer);
        }
  }

  private OverrideNodeWrapper getOverrideNode(InternalContextAdapter context,String name) {
    return (OverrideNodeWrapper)context.get(Utils.getOverrideVariableName(name));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.