Package com.sun.tools.classfile

Examples of com.sun.tools.classfile.ClassFile


        return buf;
    }

    static void check(Map<ClassFile, List<Method>> refMembers, Map<ClassFile, List<Method>> membersToCheck) throws ConstantPoolException, InvalidDescriptor {
        for (Map.Entry<ClassFile, List<Method>> ref : refMembers.entrySet()) {
            ClassFile cRef = ref.getKey();
            for (Method mRef : ref.getValue()) {
                boolean ok = false;
                for (Map.Entry<ClassFile, List<Method>> toCheck : membersToCheck.entrySet()) {
                    ClassFile cToCheck = toCheck.getKey();
                    for (Method mToCheck : toCheck.getValue()) {
                        if (cRef.getName().equals(cToCheck.getName()) &&
                                mRef.descriptor.getReturnType(cRef.constant_pool).equals(
                                mToCheck.descriptor.getReturnType(cToCheck.constant_pool)) &&
                                mRef.descriptor.getParameterTypes(cRef.constant_pool).equals(
                                mToCheck.descriptor.getParameterTypes(cToCheck.constant_pool))) {
                            ok = true;
View Full Code Here


    void verifyMulticatchExceptionRanges(File f) {
        System.err.println("verify: " + f);
        try {
            int count = 0;
            ClassFile cf = ClassFile.read(f);
            Method testMethod = null;
            for (Method m : cf.methods) {
                if (m.getName(cf.constant_pool).equals(TEST_METHOD_NAME)) {
                    testMethod = m;
                    break;
View Full Code Here

    }

    void verifyLocalVariableTypeTableAttr(File f) {
        System.err.println("verify: " + f);
        try {
            ClassFile cf = ClassFile.read(f);
            Method testMethod = null;
            for (Method m : cf.methods) {
                if (m.getName(cf.constant_pool).equals(TEST_METHOD_NAME)) {
                    testMethod = m;
                    break;
View Full Code Here

TOP

Related Classes of com.sun.tools.classfile.ClassFile

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.