Package railo.transformer.bytecode.visitor

Examples of railo.transformer.bytecode.visitor.ConditionVisitor.visitAfter()


                adapter.visitVarInsn(Opcodes.ILOAD, 3);
                adapter.visitMethodInsn(Opcodes.INVOKEVIRTUAL, name, createFunctionName(++count), "(Lrailo/runtime/PageContext;Lrailo/runtime/type/UDF;I)Ljava/lang/Object;");
                adapter.visitInsn(Opcodes.ARETURN);//adapter.returnValue();
              cv.visitWhenAfterBody(bc);
            }
            cv.visitAfter(bc);
         
          adapter.visitInsn(Opcodes.ACONST_NULL);
          adapter.returnValue();
          adapter.endMethod();
         
View Full Code Here


              adapter.visitMethodInsn(Opcodes.INVOKEVIRTUAL, name, "udfDefaultValue"+(++count), "(Lrailo/runtime/PageContext;IILjava/lang/Object;)Ljava/lang/Object;");
              adapter.visitInsn(Opcodes.ARETURN);//adapter.returnValue();
             
            cv.visitWhenAfterBody(bc);
          }
          cv.visitAfter(bc);
       
        adapter.visitInsn(Opcodes.ACONST_NULL);
        adapter.returnValue();
        adapter.endMethod();
       
View Full Code Here

        div.visitEnd(bc);
          cv.visitWhenAfterExprBeforeBody(bc);
            writeOutFunctionDefaultValueInnerInner(bc, functions[i]);
          cv.visitWhenAfterBody(bc);
        }
        cv.visitAfter(bc);
  }


  private void writeOutUdfCallInnerIf(BytecodeContext bc,Function[] functions, int offset, int length) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
View Full Code Here

            ExpressionUtil.visitLine(bc, functions[i].getStart());
            functions[i].getBody().writeOut(bc);
            ExpressionUtil.visitLine(bc, functions[i].getEnd());
          cv.visitWhenAfterBody(bc);
        }
        cv.visitAfter(bc);
  }

  private void writeOutUdfCallInner(BytecodeContext bc,Function[] functions, int offset, int length) throws BytecodeException {
    NativeSwitch ns=new NativeSwitch(2,NativeSwitch.ARG_REF,null,null);
   
View Full Code Here

            cv.visitWhenAfterExprBeforeBody(bc);
              Body body = threads[i].getRealBody();
              if(body!=null)body.writeOut(bc);
            cv.visitWhenAfterBody(bc);
          }
        cv.visitAfter(bc);
  }

  private void writeOutInitComponent(BytecodeContext statConstr,BytecodeContext constr,List<LitString> keys, ClassWriter cw, Tag component) throws BytecodeException {
    final GeneratorAdapter adapter = new GeneratorAdapter(Opcodes.ACC_PUBLIC+Opcodes.ACC_FINAL , INIT_COMPONENT, null, new Type[]{Types.PAGE_EXCEPTION}, cw);
        BytecodeContext bc=new BytecodeContext(null,statConstr, constr,this,keys,cw,name,adapter,INIT_COMPONENT,writeLog(),supressWSbeforeArg);
View Full Code Here

      cv.visitOtherviseBeforeBody();
        adapter.loadArg(0);
        adapter.invokeVirtual(Types.PAGE_CONTEXT, PUSH_BODY);
      cv.visitOtherviseAfterBody();
    cv.visitAfter(bc);
    adapter.storeLocal(localBC);
   
    // c.init(pc,this);
    adapter.loadArg(1);
    adapter.loadArg(0);
View Full Code Here

    }
    cv.visitOtherviseBeforeBody();
      //adapter.visitInsn(ACONST_NULL);
      //adapter.returnValue();
    cv.visitOtherviseAfterBody();
    cv.visitAfter(bc);
  }

  private Function[] getFunctions() {
    Function[] funcs=new Function[functions.size()];
    Iterator it = functions.iterator();
View Full Code Here

            cv.visitOtherviseBeforeBody();
              _else.body.writeOut(bc);
            cv.visitOtherviseAfterBody();
          }
         
        cv.visitAfter(bc);
    }

  /**
   * @see railo.transformer.bytecode.statement.HasBodies#getBodies()
   */
 
View Full Code Here

    }

    // default
    if(def!=null)setDefaultCase(bc,cv,def);
   
    cv.visitAfter(bc);
   
   
    /*
    
<!-- cases -->
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.