コード例 #1
0
  public CFStatementResult Exec(CFContext context) throws cfmRunTimeException {
    setLineCol(context);

    String templatePath = template.EvalFully(context).getString();

    cfSession session = context.getSession();
    cfFile templateFile = cfINCLUDE.loadTemplate(session, templatePath);
    session.write(templateFile.renderToString(session).getOutput());

    return null;
  }
コード例 #2
0
  @Override
  public CFStatementResult Exec(CFContext context) throws cfmRunTimeException {
    setLineCol(context);

    if (message != null) {
      String messageStr = message.EvalFully(context).getString();
      throw new cfmRunTimeException(
          catchDataFactory.runtimeException(this.getHostTag(), messageStr));
    } else {
      context
          .getSession()
          .abortPageProcessing(true); // throws cfmAbortException, but flushing the output
    }

    return null;
  }
コード例 #3
0
 public String Decompile(int indent) {
   return "include " + template.Decompile(0);
 }