Package fr.xlim.ssd.capmanipulator.library

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


                        ConstantStaticFieldRef cStatF = new ConstantStaticFieldRefRead().load(in);
                        constantPoolComponent.getConstantPool().add(cStatF);
                        break;

                    case ConstantPoolComponent.TAG_STATIC_METHOD_REF:
                        ConstantStaticMethodRef cStatMet = new ConstantStaticMethodRefRead().load(in);
                        constantPoolComponent.getConstantPool().add(cStatMet);
                        break;

                    default:
                        throw new UnknownTagException(
                                "an error has occured while loading constant pool, tag "
                                        + cpTag + " unknow");

                }

            }

            // we'll get the offset to method componentTab into a list which will
            // be used when loading method componentTab
            for (ConstantPoolInfo elem : constantPoolComponent.getConstantPool()) {

                // we have offset to method componentTab only for
                // InternalStaticMethodRef which are contained in Constant
                // static method ref
                if (elem instanceof ConstantStaticMethodRef) {

                    ConstantStaticMethodRef tmp = (ConstantStaticMethodRef) elem;

                    if (tmp.getStaticMethodRef() instanceof InternalStaticMethodRef) {
                        InternalStaticMethodRef tmp2 = (InternalStaticMethodRef) tmp.getStaticMethodRef();

                        constantPoolComponent.getOffsetMethodList().add(tmp2.getOffset());
                    }

                }
View Full Code Here


     * @param in Cap File Stream
     *
     * @throws java.io.IOException
     */
    public ConstantStaticMethodRef load(CapInputStream in) throws UnableToReadCapFileException {
        ConstantStaticMethodRef constantStaticMethodRef = new ConstantStaticMethodRef();
        constantStaticMethodRef.setStaticMethodRef(new StaticMethodRefRead().load(in));
        return constantStaticMethodRef;
    }
View Full Code Here

TOP

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

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.