Package org.objectweb.asm.commons

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


    adapter.invokeVirtual(NUMBER_ITERATOR, CURRENT);
    adapter.storeLocal(current);
   
   
    // current
    int icurrent=adapter.newLocal(Types.INT_VALUE);
   
    adapter.loadLocal(current);
    adapter.push(1);
    adapter.visitInsn(Opcodes.ISUB);
    adapter.storeLocal(icurrent);
View Full Code Here


      adapter.ifZCmp(Opcodes.IFEQ, _if);
        wv.visitBreak(bc);
      adapter.visitLabel(_if);
   
      // NumberIterator oldNi=numberIterator;
      int oldNi=adapter.newLocal(NUMBER_ITERATOR);
     
      adapter.loadLocal(tag.getNumberIterator());
      adapter.storeLocal(oldNi);
     
      // numberIterator=NumberIterator.load(ni,query,group,grp_case);
View Full Code Here

 
  @Override
  public Type _writeOut(BytecodeContext bc, int mode) throws BytecodeException {
    GeneratorAdapter mv = bc.getAdapter();
   
    int local = mv.newLocal(Types.OBJECT);
   
   
   
    {
      Label begin = new Label();
View Full Code Here

  public static void writeOut(Tag tag, BytecodeContext bc, boolean doReuse, final FlowControlFinal fcf) throws BytecodeException {
    final GeneratorAdapter adapter = bc.getAdapter();
    final TagLibTag tlt = tag.getTagLibTag();
    final Type currType=getTagType(tag);
   
    final int currLocal=adapter.newLocal(currType);
    Label tagBegin=new Label();
    Label tagEnd=new Label();
    ExpressionUtil.visitLine(bc, tag.getStart());
    // TODO adapter.visitLocalVariable("tag", "L"+currType.getInternalName()+";", null, tagBegin, tagEnd, currLocal);
View Full Code Here

    }
   
   
  // Body
    if(hasBody){
      final int state=adapter.newLocal(Types.INT_VALUE);
     
      // int state=tag.doStartTag();
      adapter.loadLocal(currLocal);
      adapter.invokeVirtual(currType, DO_START_TAG);
      adapter.storeLocal(state);
View Full Code Here

   * @see railo.transformer.bytecode.statement.tag.TagBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter)
   */
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    final GeneratorAdapter adapter = bc.getAdapter();
   
    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);
View Full Code Here

  }
 
  @Override
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    final int it=adapter.newLocal(Types.ITERATOR);
    final int item=adapter.newLocal(Types.REFERENCE);
   
    //Value
      // ForEachUtil.toIterator(value)
      value.writeOut(bc, Expression.MODE_REF);
View Full Code Here

 
  @Override
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    final int it=adapter.newLocal(Types.ITERATOR);
    final int item=adapter.newLocal(Types.REFERENCE);
   
    //Value
      // ForEachUtil.toIterator(value)
      value.writeOut(bc, Expression.MODE_REF);
      adapter.invokeStatic(FOR_EACH_UTIL, TO_ITERATOR);
View Full Code Here

   */
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();

    // expression
    int expression=adapter.newLocal(Types.STRING);
    getAttribute("expression").getValue().writeOut(bc, Expression.MODE_REF);
    adapter.storeLocal(expression);
   
   
    List statements = getBody().getStatements();
View Full Code Here

        ga.visitTryCatchBlock(before, after, rethrow, "java/lang/RuntimeException");

        Type thr = Type.getType(Throwable.class);
        Label handler = ga.mark();
        Type udt = Type.getType(UndeclaredThrowableException.class);
        int loc = ga.newLocal(thr);
        ga.storeLocal(loc, thr);
        ga.newInstance(udt);
        ga.dup();
        ga.loadLocal(loc, thr);
        ga.invokeConstructor(udt, org.objectweb.asm.commons.Method
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.