Package railo.transformer.bytecode.statement

Examples of railo.transformer.bytecode.statement.Return


   */
  private final Return returnStatement(ExprData data) throws TemplateException {
      if(!data.cfml.forwardIfCurrentAndNoVarExt("return")) return null;
     
      Position line = data.cfml.getPosition();
      Return rtn;
     
      comments(data);
      if(checkSemiColonLineFeed(data, false,false)) rtn=new Return(line,data.cfml.getPosition());
      else {
        Expression expr = expression(data);
        checkSemiColonLineFeed(data, true,true);
        rtn=new Return(expr,line,data.cfml.getPosition());
      }
    comments(data);

    return rtn;
  }
View Full Code Here


   */
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    Attribute attr = getAttribute("expr");
    Expression expr=null;
    if(attr!=null)expr=attr.getValue();
    new Return(expr,expr.getStart(),expr.getEnd()).writeOut(bc);
  }
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.statement.Return

Copyright © 2018 www.massapicom. 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.