Package railo.transformer.bytecode

Examples of railo.transformer.bytecode.Position


    }
   
    //if(!data.cfml.forwardIfCurrent("do",'{') && !data.cfml.forwardIfCurrent("do ") && !data.cfml.forwardIfCurrent("do",'/'))
    //  return null;
   
    Position line = data.cfml.getPosition();
    Body body=new BodyBase();
   
    //data.cfml.previous();
    statement(data,body,CTX_DO_WHILE);
   
View Full Code Here


   
   
   
    Expression left=null;
    Body body=new BodyBase();
    Position line = data.cfml.getPosition();
    comments(data);
    if(!data.cfml.isCurrent(';')) {
      // left
      left=expression(data);
      comments(data);
View Full Code Here

      }
    }
   
   
   
    Position line = data.cfml.getPosition();
   
    comments(data);
   
    // Name
      String id=identifier(data,false);
View Full Code Here

        data.cfml.setPos(data.cfml.getPos()-type.length());
        return null;
      }
    }
    else return null;
    Position line = data.cfml.getPosition();
   
    TagLibTagScript script = tlt.getScript();
    //TagLibTag tlt = CFMLTransformer.getTLT(data.cfml,type);
    if(script.getContext()==CTX_CFC)data.isCFC=true;
    else if(script.getContext()==CTX_INTERFACE)data.isInterface=true;
View Full Code Here

  }
 
  private final Tag _propertyStatement(ExprData data,Body parent) throws TemplateException  {
    if(data.context!=CTX_CFC || !data.cfml.forwardIfCurrent("property "))
      return null;
    Position line = data.cfml.getPosition();
   
    TagLibTag tlt = CFMLTransformer.getTLT(data.cfml,"property");
    Tag property=new TagOther(line,null);
    addMetaData(data, property,IGNORE_LIST_PROPERTY);
   
View Full Code Here

              IOUtil.closeEL(is);
            }
            return barr;
          }
          catch (BytecodeException bce) {
            Position pos = bce.getPosition();
            int line=pos==null?-1:pos.line;
            int col=pos==null?-1:pos.column;
            bce.addContext(source, line, col,null);
            throw bce;
            //throw new TemplateException(source,e.getLine(),e.getColumn(),e.getMessage());
View Full Code Here

   
   
   
    int column=pos-posAtStart;
   
    return new Position(line,column,pos);
  }
View Full Code Here

   * @param bc
   * @param mode
   * @throws BytecodeException
   */
  public static void writeOutSilent(Expression value, BytecodeContext bc, int mode) throws BytecodeException {
    Position start = value.getStart();
    Position end = value.getEnd();
    value.setStart(null);
    value.setEnd(null);
    value.writeOut(bc, mode);
    value.setStart(start);
    value.setEnd(end);
View Full Code Here

  * @return CFXD Element
  * @throws TemplateException
  */
  private Expression notOp(ExprData data) throws TemplateException {
    // And Operation
    Position line = data.cfml.getPosition();
    if (data.cfml.isCurrent('!') && !data.cfml.isCurrent("!=")) {
      data.cfml.next();
      comments(data);
      return OpNegate.toExprBoolean(notOp(data),line,data.cfml.getPosition());
    }
View Full Code Here

      expr=_unaryOp(data,expr,OpDouble.MINUS);
    return expr;
  }
 
  private Expression _unaryOp(ExprData data,Expression expr,int opr) throws TemplateException {
    Position leftEnd = expr.getEnd(),start=null,end=null;
    comments(data);
    if(leftEnd!=null){
      start=leftEnd;
      end=new Position(leftEnd.line, leftEnd.column+2, leftEnd.pos+2);
    }
   
    ExprDouble res = OpDouble.toExprDouble(expr, LitDouble.toExprDouble(1D,start,end),opr);
    expr=new OpVariable((Variable)expr,res);
    return OpDouble.toExprDouble(expr,LitDouble.toExprDouble(1D,start,end),opr==OpDouble.PLUS? OpDouble.MINUS:OpDouble.PLUS);
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.Position

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.