Package de.fub.bytecode.generic

Examples of de.fub.bytecode.generic.Instruction


      _local = null;
  }
    }
   
    public Instruction loadInstruction() {
  final Instruction instr = _loadInstruction;
  return instr != null
      ? instr : (_loadInstruction = _type.LOAD(_local.getIndex()));
    }
View Full Code Here


    }

    public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();
  final Instruction addIterator =
      new INVOKEVIRTUAL(cpg.addMethodref(UNION_ITERATOR_CLASS,
                 ADD_ITERATOR,
                 ADD_ITERATOR_SIG));
  // create new UnionIterator
  il.append(new NEW(cpg.addClass(UNION_ITERATOR_CLASS)));
View Full Code Here

      _local = null;
  }
    }

    public Instruction loadInstruction() {
  final Instruction instr = _loadInstruction;
  return instr != null
      ? instr : (_loadInstruction = _type.LOAD(_local.getIndex()));
    }
View Full Code Here

      break;

  default:
      final int initBuffer = cpg.addMethodref(STRING_BUFFER_CLASS,
                "<init>", "()V");
      final Instruction append =
    new INVOKEVIRTUAL(cpg.addMethodref(STRING_BUFFER_CLASS,
               "append",
               "("+STRING_SIG+")"
               +STRING_BUFFER_SIG));
     
View Full Code Here

      break;

  default:
      final int initBuffer = cpg.addMethodref(STRING_BUFFER_CLASS,
                "<init>", "()V");
      final Instruction append =
    new INVOKEVIRTUAL(cpg.addMethodref(STRING_BUFFER_CLASS,
               "append",
               "("+STRING_SIG+")"
               +STRING_BUFFER_SIG));
     
View Full Code Here

    /**
     * Returns a handle to the instruction for loading the value of this
     * variable onto the JVM stack.
     */
    public Instruction loadInstruction() {
  final Instruction instr = _loadInstruction;
  if (_loadInstruction == null)
      _loadInstruction = _type.LOAD(_local.getIndex());
  return _loadInstruction;
    }
View Full Code Here

TOP

Related Classes of de.fub.bytecode.generic.Instruction

Copyright © 2018 www.massapicom. 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.