Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter.invokeStatic()


   
   
    // instance of Abort
      Label abortEnd=new Label();
      adapter.loadLocal(lThrow);
      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
          adapter.loadLocal(lThrow);
          adapter.throwException();
          adapter.visitLabel(abortEnd);
View Full Code Here


      adapter.storeLocal(old);
         
         
      // cast to PageException  Caster.toPagException(t);
          adapter.loadLocal(lThrow);
          adapter.invokeStatic(Types.CASTER, TO_PAGE_EXCEPTION);
         
      // PageException pe=...
          adapter.storeLocal(pe);

      // catch loop
View Full Code Here

     
      // VariableReference index>=VariableInterpreter.getVariableReference(pc,@index));
      int index = adapter.newLocal(Types.VARIABLE_REFERENCE);
      adapter.loadArg(0);
      ExpressionUtil.writeOutSilent(getAttribute("index").getValue(), bc, Expression.MODE_REF);
      adapter.invokeStatic(Types.VARIABLE_INTERPRETER, GET_VARIABLE_REFERENCE);
      adapter.storeLocal(index);
     

      // index.set(from);
      adapter.loadLocal(index);
View Full Code Here

    else {
      // array=List.listToArrayRemoveEmpty(list, delimter)
      getAttribute("list").getValue().writeOut(bc, Expression.MODE_REF);
      if(containsAttribute("delimiters")) {
        getAttribute("delimiters").getValue().writeOut(bc, Expression.MODE_REF);
        adapter.invokeStatic(Types.LIST_UTIL, LIST_TO_ARRAY_REMOVE_EMPTY_SS);
      }
      else {
        adapter.visitIntInsn(Opcodes.BIPUSH, 44);// ','
        //adapter.push(',');
        adapter.invokeStatic(Types.LIST_UTIL, LIST_TO_ARRAY_REMOVE_EMPTY_SC);
View Full Code Here

        adapter.invokeStatic(Types.LIST_UTIL, LIST_TO_ARRAY_REMOVE_EMPTY_SS);
      }
      else {
        adapter.visitIntInsn(Opcodes.BIPUSH, 44);// ','
        //adapter.push(',');
        adapter.invokeStatic(Types.LIST_UTIL, LIST_TO_ARRAY_REMOVE_EMPTY_SC);
      }
    }
    adapter.storeLocal(array);
 
   
View Full Code Here

    int index = -1;
    if(attrIndex!=null) {
      index = adapter.newLocal(Types.VARIABLE_REFERENCE);
      adapter.loadArg(0);
      attrIndex.getValue().writeOut(bc, Expression.MODE_REF);
      adapter.invokeStatic(Types.VARIABLE_INTERPRETER, GET_VARIABLE_REFERENCE);
      adapter.storeLocal(index);
    }
   

    //VariableInterpreter.getVariableReference(pc,Caster.toString(item));
View Full Code Here

    int item = -1;
    if(attrItem!=null) {
      item = adapter.newLocal(Types.VARIABLE_REFERENCE);
      adapter.loadArg(0);
      attrItem.getValue().writeOut(bc, Expression.MODE_REF);
      adapter.invokeStatic(Types.VARIABLE_INTERPRETER, GET_VARIABLE_REFERENCE);
      adapter.storeLocal(item);
    }
   
   
    int obj=0;
View Full Code Here

      if(index!=-1 && item!=-1) {
        adapter.loadLocal(index);
        adapter.loadArg(0);
        adapter.visitVarInsn(Opcodes.ILOAD, i);
        adapter.cast(Types.INT_VALUE,Types.DOUBLE_VALUE);
              adapter.invokeStatic(Types.CASTER,Methods_Caster.TO_DOUBLE[Methods_Caster.DOUBLE]);
              adapter.invokeVirtual(Types.VARIABLE_REFERENCE, SET);
        adapter.pop();
      }
     
     
View Full Code Here

    int e=tcfv.visitTryEndCatchBeging(bc);
      // if(e instanceof railo.runtime.exp.Abort) throw e;
      Label abortEnd=new Label();
      adapter.loadLocal(e);
      // Abort.isAbort(t);
      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
     
     
     
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
View Full Code Here

          if(str!=null) {
        bc.getAdapter().getStatic(CONSTANTS_DOUBLE, str, Types.DOUBLE);
      }
      else {
        adapter.push(d);
            adapter.invokeStatic(Types.CASTER,Methods.METHOD_TO_DOUBLE_FROM_DOUBLE);
      }
            return Types.DOUBLE;
        }
        adapter.push(d);
       
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.