Package railo.transformer.bytecode

Examples of railo.transformer.bytecode.Position


  }
 
  private Tag _paramStatement(ExprData data,Body parent) throws TemplateException  {
    if(!data.cfml.forwardIfCurrent("param "))
      return null;
    Position line = data.cfml.getPosition();
   
    TagLibTag tlt = CFMLTransformer.getTLT(data.cfml,"param");
    TagParam param=new TagParam(line,null);
   
    // type
View Full Code Here


   * @throws TemplateException
   */
  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 {
View Full Code Here

    }
    else return null;
   
   
    int pos=data.cfml.getPos()-tagName.length();
    Position line = data.cfml.getPosition();
    //TagLibTag tlt = CFMLTransformer.getTLT(data.cfml,tagName.equals("pageencoding")?"processingdirective":tagName);
   
    Tag tag=getTag(data,parent,tlt,line,null);
    tag.setScriptBase(true);
    tag.setTagLibTag(tlt);
View Full Code Here

      catchCount++;
      comments(data);
     
      // type
      int pos=data.cfml.getPos();
      Position line=data.cfml.getPosition();
      Expression name = null,type = null;
     
      StringBuffer sbType=new StringBuffer();
            String id;
            while(true) {
View Full Code Here

    if(quoter!='"' && quoter!='\'')
      return null;
    StringBuffer str=new StringBuffer();
    boolean insideSpecial=false;
 
    Position line = cfml.getPosition();
    while(cfml.hasNext()) {
      cfml.next();
      // check special
      if(cfml.isCurrent(specialChar)) {
        insideSpecial=!insideSpecial;
View Full Code Here

   * @return Element
   * @throws TemplateException
   */
  public Expression simple(CFMLString cfml) throws TemplateException {
    StringBuffer sb=new StringBuffer();
    Position line = cfml.getPosition();
    while(cfml.isValidIndex()) {
      if(cfml.isCurrent(' ') || cfml.isCurrent('>') || cfml.isCurrent("/>")) break;
      else if(cfml.isCurrent('"') || cfml.isCurrent('#') || cfml.isCurrent('\'')) {
        throw new TemplateException(cfml,"simple attribute value can't contain ["+cfml.getCurrent()+"]");
      }
View Full Code Here

   */
  private final Statement ifStatement(ExprData data) throws TemplateException {
    if(!data.cfml.forwardIfCurrent("if",'(')) return null;
   
   
    Position line = data.cfml.getPosition();
   
    Body body=new BodyBase();
    Condition cont=new Condition(condition(data),body,line,null);
   
    if(!data.cfml.forwardIfCurrent(')')) throw new TemplateException(data.cfml,"if statement must end with a [)]");
View Full Code Here

    if(!data.cfml.forwardIfCurrent("if",'(')) {
      data.cfml.setPos(pos);
      return false;
    }
     
    Position line = data.cfml.getPosition();
    Body body=new BodyBase();
    Pair pair = cont.addElseIf(condition(data), body, line,null);

    if(!data.cfml.forwardIfCurrent(')'))
      throw new TemplateException(data.cfml,"else if statement must end with a [)]");
View Full Code Here

        data.cfml.setPos(pos);
        return null;
      }
    }
   
    Position line = data.cfml.getPosition();
    Body body=new BodyBase();
    While whil=new While(condition(data),body,line,null,id);
   
    if(!data.cfml.forwardIfCurrent(')'))
      throw new TemplateException(data.cfml,"while statement must end with a [)]");
View Full Code Here

   */
  private final Switch switchStatement(ExprData data) throws TemplateException {
    if(!data.cfml.forwardIfCurrent("switch",'('))
      return null;
   
    Position line = data.cfml.getPosition();
   
    comments(data);
    Expression expr = super.expression(data);
    comments(data);
    // end )
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.