Package fr.xlim.ssd.capmanipulator.library

Examples of fr.xlim.ssd.capmanipulator.library.MethodDescriptorInfo


        //reading of the methods
        classDescriptorInfo.setMethods(new ArrayList<MethodDescriptorInfo>(classDescriptorInfo.getMethodCount()));

        for (int i = 0; i < classDescriptorInfo.getMethodCount(); i++) {
            MethodDescriptorInfo mDes = new MethodDescriptorInfoRead().load(in);
            classDescriptorInfo.getMethods().add(mDes);
        }

        return classDescriptorInfo;
    }
View Full Code Here


     *
     */
    public MethodDescriptorInfo load(CapInputStream in)
            throws UnableToReadCapFileException {

        MethodDescriptorInfo methodDescriptorInfo = new MethodDescriptorInfo();

        methodDescriptorInfo.setToken(in.readByte());
        methodDescriptorInfo.setAccessFlags(in.readByte());
        methodDescriptorInfo.setMethodOffset(in.readShort());
        methodDescriptorInfo.setTypeOffset(in.readShort());
        methodDescriptorInfo.setBytecodeCount(in.readShort());
        methodDescriptorInfo.setExceptionHandlerCount(in.readShort());
        methodDescriptorInfo.setExceptionHandlerIndex(in.readShort());

        return methodDescriptorInfo;
    }
View Full Code Here

TOP

Related Classes of fr.xlim.ssd.capmanipulator.library.MethodDescriptorInfo

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.