Package railo.transformer.bytecode

Examples of railo.transformer.bytecode.Statement


  public void evaluate(Tag tag) throws EvaluatorException {
    translateChildren(tag.getBody().getStatements().iterator());
  }
 
  private void translateChildren(Iterator it) {
    Statement stat;
    
    while(it.hasNext()) {
      stat=(Statement) it.next();
      if(stat instanceof PrintOut) {
        PrintOut printOut = ((PrintOut)stat);
View Full Code Here


    Tag tmpFinal=null;

    tryBody.setParent(getBody().getParent());
   
    List<Statement> statements = getBody().getStatements();
    Statement stat;
    Tag tag;
    {
    Iterator<Statement> it = statements.iterator();
    while(it.hasNext()) {
      stat= it.next();
View Full Code Here

     
  }
 
  private boolean hasFinally(){
    List<Statement> statements = getBody().getStatements();
    Statement stat;
    Tag tag;
    Iterator<Statement> it = statements.iterator();
    while(it.hasNext()) {
      stat= it.next();
      if(stat instanceof Tag) {
View Full Code Here

    Body functionBody = new BodyBase();
    Function func = createFunction(bc.getPage(),functionBody);
    func.setParent(getParent());

    List<Statement> statements = getBody().getStatements();
    Statement stat;
    Tag tag;
   
    // supress WS between cffunction and the last cfargument
    Tag last=null;
    if(bc.getSupressWSbeforeArg()){
View Full Code Here

    super(start,end);
  }


  public static TagOutput getParentTagOutputQuery(Statement stat) throws BytecodeException {
    Statement parent=stat.getParent();
    if(parent==null) throw new BytecodeException("there is no parent output with query",null);
    else if(parent instanceof TagOutput) {
      if(((TagOutput)parent).hasQuery())
        return ((TagOutput)parent);
    }
View Full Code Here

       
        // count catch tag and other in body
        if(body!=null) {
          List stats = body.getStatements();
        Iterator it = stats.iterator();
          Statement stat;
          Tag t;
            String name;
            while(it.hasNext()) {
              stat=(Statement) it.next();
              if(stat instanceof Tag) {
View Full Code Here

    adapter.pop();
    //adapter.pop();
  }
 
  public static TagGroup getParentTagGroupQuery(Statement st, short type) throws BytecodeException {
    Statement parent=st.getParent();
    if(parent==null) throw new BytecodeException("there is no parent output with query",null);
    else if(parent instanceof TagGroup && type==((TagGroup)parent).getType()) {
      if(((TagGroup)parent).hasQuery())
        return ((TagGroup)parent);
    }
View Full Code Here

    Iterator it = stats.iterator();
    Tag t;
    Label endIf=writeOutElseIfStart(bc, this);
    boolean hasElse=false;
    while(it.hasNext()) {
      Statement stat = ((Statement)it.next());
      if(!hasElse && stat instanceof Tag) {
        t=(Tag) stat;
        if(t.getTagLibTag().getTagClassName().equals("railo.runtime.tag.ElseIf")) {
          writeOutElseIfEnd(adapter, endIf, end);
          endIf=writeOutElseIfStart(bc,t);
          continue;
        }
        else if(t.getTagLibTag().getTagClassName().equals("railo.runtime.tag.Else")) {
          ExpressionUtil.visitLine(bc, t.getStart());
              hasElse=true;
          writeOutElseIfEnd(adapter, endIf, end);
          //endIf=writeOutElseIfStart(adapter,t);
          continue;
        }
      }
      stat.writeOut(bc);
    }
    if(!hasElse)writeOutElseIfEnd(adapter, endIf, end);
   
    adapter.visitLabel(end);
  }
View Full Code Here

    getAttribute("expression").getValue().writeOut(bc, Expression.MODE_REF);
    adapter.storeLocal(expression);
   
   
    List statements = getBody().getStatements();
    Statement stat;
    Tag tag;

    ConditionVisitor cv=new ConditionVisitor();
    cv.visitBefore();
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.Statement

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.