Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.LDC


    protected InstructionHandle createThrowException(String newException, String message)
    {
        InstructionHandle result;
        result = il.append(factory.createNew(newException));
        il.append(InstructionConstants.DUP);
        il.append(new LDC(classGen.getConstantPool().addString(message)));
        il.append(
            factory.createInvoke(
                newException,
                Constants.CONSTRUCTOR_NAME,
                Type.VOID,
View Full Code Here


    InstructionList ilist = genMethod.getInstructionList();
    Instruction r=null;
        InstructionHandle new_target=null;
    if (method.isStatic()) {
      ilist.insert(InstructionFactory.MONITORENTER);
      ilist.insert(new LDC(jc.getClassNameIndex()));
     
      ilist.append(new LDC(jc.getClassNameIndex()));
      new_target = ilist.getEnd();
      ilist.append(InstructionFactory.MONITOREXIT);
    } else {
      ilist.insert(InstructionFactory.MONITORENTER);
      ilist.insert(InstructionFactory.ALOAD_0);
View Full Code Here

TOP

Related Classes of org.apache.bcel.generic.LDC

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.