Examples of visitEnd()


Examples of org.rsbot.loader.asm.MethodVisitor.visitEnd()

    for (final Method m : methods) {
      final MethodVisitor mv = cv.visitMethod(m.access, m.name, m.desc, null, null);
      mv.visitCode();
      new CodeReader(m.code).accept(mv);
      mv.visitMaxs(m.max_stack, m.max_locals);
      mv.visitEnd();
    }
    cv.visitEnd();
  }
}
View Full Code Here

Examples of org.springframework.asm.ClassWriter.visitEnd()

      ClassWriter cw = new ClassWriter(0);
      cw.visit(V1_6, ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE, interfaceResourcePath, null, "java/lang/Object",
          toResourcePaths(interfacesToImplement));
      cw.visitSource(interfaceResourcePath + ".java", null);
      cw.visitEnd();

      return cw.toByteArray();
    }

    private static String[] toResourcePaths(Class<?>... interfacesToImplement) {
View Full Code Here

Examples of org.springframework.asm.FieldVisitor.visitEnd()

    ClassWriter cw = new ClassWriter(0);

    cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, className, null, INSTANTIATOR_NAME, new String[] { SERIALIZABLE_NAME });
    FieldVisitor fv = cw.visitField(ACC_PRIVATE + ACC_FINAL + ACC_STATIC, CLASS_FIELD_NAME, CLASS_DESCRIPTOR, null,
        null);
    fv.visitEnd();
    fv = cw.visitField(ACC_PRIVATE + ACC_FINAL + ACC_STATIC, ID_FIELD_NAME, Type.INT_TYPE.getDescriptor(), null,
        Integer.valueOf(classId));
    fv.visitEnd();

    String voidNoArgMethodDescriptor = Type.getMethodDescriptor(Type.VOID_TYPE, new Type[] {});
View Full Code Here

Examples of org.springframework.asm.MethodVisitor.visitEnd()

      for (ClinitAdder clinitAdder: clinitAdders) {
        clinitAdder.generateCode(mv, this);
      }
      mv.visitInsn(RETURN);
      mv.visitMaxs(0,0); // not supplied due to COMPUTE_MAXS
      mv.visitEnd();
    }
  }

  /**
   * Register a FieldAdder which will add a new field to the generated
View Full Code Here

Examples of railo.transformer.bytecode.visitor.ArrayVisitor.visitEnd()

        av.visitBeginItem(adapter, i);
          Variable.registerKey(bc, arr[i].getName());
        av.visitEndItem(adapter);
          }
    }
        av.visitEnd();
   
       
        // allowNull
        //adapter.push(false);
   
View Full Code Here

Examples of railo.transformer.bytecode.visitor.DecisionDoubleVisitor.visitEnd()

    DecisionDoubleVisitor div=new DecisionDoubleVisitor();
    div.visitBegin();
      adapter.loadLocal(step);
    div.visitGT();
      adapter.push(0D);
    div.visitEnd(bc);
    adapter.storeLocal(dirPlus);
   
    //if(step!=0) {
    div=new DecisionDoubleVisitor();
    div.visitBegin();
View Full Code Here

Examples of railo.transformer.bytecode.visitor.DecisionIntVisitor.visitEnd()

        dv2.visitBegin();
          adapter.iinc(count, 1);
          adapter.loadLocal(count);
        dv2.visitLT();
          adapter.loadLocal(startline);
        dv2.visitEnd(bc);
        Label end=new Label();
        adapter.ifZCmp(Opcodes.IFEQ, end);
          whileVisitor.visitContinue(bc);
        adapter.visitLabel(end);
       
View Full Code Here

Examples of railo.transformer.bytecode.visitor.DecisionObjectVisitor.visitEnd()

          adapter.dup();
          adapter.storeLocal(line);
         
        dv.visitNEQ();
          adapter.visitInsn(Opcodes.ACONST_NULL);
        dv.visitEnd(bc);
       
      whileVisitor.visitAfterExpressionBeforeBody(bc);
        //if(++count < startLine) continue;
        DecisionIntVisitor dv2=new DecisionIntVisitor();
        dv2.visitBegin();
View Full Code Here

Examples of railo.transformer.bytecode.visitor.ForVisitor.visitEnd()

        adapter.pop();
      }
     
     
      getBody().writeOut(bc);
    forVisitor.visitEnd(bc, len, true,getStart());
  }
 
  /* *
   * write out query loop
   * @param adapter
View Full Code Here

Examples of railo.transformer.bytecode.visitor.ParseBodyVisitor.visitEnd()

   */
  private void writeOutTypeNormal(BytecodeContext bc) throws BytecodeException {
    ParseBodyVisitor pbv=new ParseBodyVisitor();
    pbv.visitBegin(bc);
      getBody().writeOut(bc);
    pbv.visitEnd(bc);
  }


  @Override
  public short getType() {
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.