Package org.objectweb.asm.commons

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


    // Group Case Sensitve
    Attribute attrGroupCS = tag.getAttribute("groupcasesensitive");
    int groupCaseSensitive=adapter.newLocal(Types.BOOLEAN_VALUE);
    if(attrGroupCS!=nullattrGroupCS.getValue().writeOut(bc, Expression.MODE_VALUE);
    else           adapter.push(true);
    adapter.storeLocal(groupCaseSensitive);
   
    TagGroup parent = getParentTagGroupQuery(tag,tag.getType());
    tag.setNumberIterator(parent.getNumberIterator());
    tag.setQuery(parent.getQuery());
    //queryImpl = parent.getQueryImpl();
View Full Code Here


   
    // current
    int current=adapter.newLocal(Types.INT_VALUE);
    adapter.loadLocal(tag.getNumberIterator());
    adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
    adapter.storeLocal(current);
   
   
    // current
    int icurrent=adapter.newLocal(Types.INT_VALUE);
   
View Full Code Here

    int icurrent=adapter.newLocal(Types.INT_VALUE);
   
    adapter.loadLocal(current);
    adapter.push(1);
    adapter.visitInsn(Opcodes.ISUB);
    adapter.storeLocal(icurrent);
   
   
    WhileVisitor wv = new WhileVisitor();
    if(tag instanceof TagLoop) ((TagLoop)tag).setLoopVisitor(wv);
    wv.visitBeforeExpression(bc);
View Full Code Here

   
      // NumberIterator oldNi=numberIterator;
      int oldNi=adapter.newLocal(NUMBER_ITERATOR);
     
      adapter.loadLocal(tag.getNumberIterator());
      adapter.storeLocal(oldNi);
     
      // numberIterator=NumberIterator.load(ni,query,group,grp_case);
      adapter.loadArg(0);
      adapter.loadLocal(tag.getNumberIterator());
      adapter.loadLocal(tag.getQuery());
View Full Code Here

      adapter.loadLocal(tag.getNumberIterator());
      adapter.loadLocal(tag.getQuery());
      adapter.loadLocal(tag.getGroup());
      adapter.loadLocal(groupCaseSensitive);
      adapter.invokeStatic(NUMBER_ITERATOR, LOAD_5);
      adapter.storeLocal(tag.getNumberIterator());
     
      // current=oldNi.current();
      adapter.loadLocal(oldNi);
      adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
      adapter.storeLocal(icurrent);
View Full Code Here

      adapter.storeLocal(tag.getNumberIterator());
     
      // current=oldNi.current();
      adapter.loadLocal(oldNi);
      adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
      adapter.storeLocal(icurrent);
     
      tag.getBody().writeOut(bc);
     
      //tmp(adapter,current);
     
View Full Code Here

     
      mv.visitTryCatchBlock(begin, onSuccess, onFail, "java/lang/Throwable");
      mv.visitLabel(begin);
     
        expr.writeOut(bc, MODE_REF);
        mv.storeLocal(local);
     
      mv.visitLabel(onSuccess);
      mv.visitJumpInsn(GOTO, end);
     
      mv.visitLabel(onFail);
View Full Code Here

     
      mv.visitLabel(onFail);
      //mv.visitVarInsn(ASTORE, 2);
     
        defaultValue.writeOut(bc, MODE_REF);
        mv.storeLocal(local);
     
     
      mv.visitLabel(end);
      mv.loadLocal(local);
View Full Code Here

  // tag=pc.use(str);
    adapter.loadArg(0);
    adapter.push(tlt.getTagClassName());
    adapter.invokeVirtual(Types.PAGE_CONTEXT, USE);
    adapter.checkCast(currType);
    adapter.storeLocal(currLocal);
 
  TryFinallyVisitor outerTcfv=new TryFinallyVisitor(new OnFinally() {
    public void writeOut(BytecodeContext bc) {

      adapter.loadArg(0);
View Full Code Here

    final int silentMode=adapter.newLocal(Types.BOOLEAN_VALUE);
   
    // boolean silentMode= pc.setSilent();
    adapter.loadArg(0);
    adapter.invokeVirtual(Types.PAGE_CONTEXT, SET_SILENT);
    adapter.storeLocal(silentMode);
   
    // call must be
    TryFinallyVisitor tfv=new TryFinallyVisitor(new OnFinally() {
      public void writeOut(BytecodeContext bc) {
        //if(fcf!=null && fcf.getAfterFinalGOTOLabel()!=null)ASMUtil.visitLabel(adapter,fcf.getFinalEntryLabel());
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.