Package fr.xlim.ssd.capmanipulator.library.bytecodereader

Examples of fr.xlim.ssd.capmanipulator.library.bytecodereader.Offset


                            //we get the value of the pair
                            byte[] value = new byte[2];
                            value[0] = methodInfo.getBytecodes().get(i++);
                            value[1] = methodInfo.getBytecodes().get(i++);

                            Offset o = new Offset(value, (short) 2, true, Destination.BYTECODE);
                            myOp.getArguments().add(o);

                        }

                        break;

                    case 0x75: //case of slookupswitch
                    case 0x76: //case of ilookupswitch
                        short npair = (short) (myOp.getArguments().get(1).getValue()[0] >> 8 | myOp.getArguments().get(1).getValue()[1]);

                        for (int j = 0; j < npair; j++) {
                            //we create the operand describing the matchByte 1 and 2
                            byte[] value = new byte[2];
                            value[0] = methodInfo.getBytecodes().get(i++);
                            value[1] = methodInfo.getBytecodes().get(i++);

                            Operand op = new Operand(value, (short) 2, true);
                            myOp.getArguments().add(op);


                            //we create the offset
                            value=new byte[2];
                            value[0] = methodInfo.getBytecodes().get(i++);
                            value[1] = methodInfo.getBytecodes().get(i++);

                            Offset off = new Offset(value, (short) 2, true, Destination.BYTECODE);
                            myOp.getArguments().add(off);
                        }

                        break;
View Full Code Here


                    if (!labels.contains(lab))
                        labels.add(lab);
                }
                for (int j = 0; j < arguments.size(); j++) {
                    if (arguments.get(j) instanceof Offset) {
                        Offset of = (Offset) arguments.get(j);
                        short lab = (short)(CurrentEntry.getKey() + getValue(of));
                        if (!labels.contains(lab))
                            labels.add(lab);
                    }
                }
View Full Code Here

TOP

Related Classes of fr.xlim.ssd.capmanipulator.library.bytecodereader.Offset

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.