Examples of INVOKEVIRTUAL


Examples of org.apache.bcel.generic.INVOKEVIRTUAL

  // Create the new output handler (leave it on stack)
  il.append(classGen.loadTranslet());
  _filename.translate(classGen, methodGen);
        il.append(new PUSH(cpg, _append));
  il.append(new INVOKEVIRTUAL(open));

  // Overwrite current handler
  il.append(methodGen.storeHandler());
 
  // Translate contents with substituted handler
  translateContents(classGen, methodGen);

  // Close the output handler (close file)
  il.append(classGen.loadTranslet());
  il.append(methodGen.loadHandler());
  il.append(new INVOKEVIRTUAL(close));

  // Restore old output handler from stack
  il.append(methodGen.storeHandler());
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEVIRTUAL

            }
            else {
          index = cpg.addMethodref(clazz,
             _fname.getLocalPart(),
             buffer.toString());
          il.append(_thisArgument != null ? (InvokeInstruction) new INVOKEVIRTUAL(index) :
            (InvokeInstruction) new INVOKESTATIC(index));
            }
      // Convert the return type back to our internal type
      _type.translateFrom(classGen, methodGen,
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEVIRTUAL

               MethodGenerator methodGen) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();
  _base.translate(classGen, methodGen);
  _token.translate(classGen, methodGen);
  il.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_CLASS,
                 "indexOf",
                 "("+STRING_SIG+")I")));
  _falseList.add(il.append(new IFLT(null)));
    }
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.